Skip to content

Asset API

jeremyosterhoudt edited this page Jan 30, 2018 · 6 revisions

Overview

The Predix SDK for iOS Asset API allows your application to access Asset data from the Asset Service available on Predix.io. The SDK provides a simple native Swift API that converts Asset JSON requests and responses into Swift models that make it easier to use, display, and manipulate Asset data from Swift.

Features

  • Predix SDK for iOS handles authentication with Asset, you simply need to provide the UAA endpoint and Zone ID.
  • Request data using native Swift objects.
  • Response data is represented with native Swift objects making it easier to filter, display, and find data that is most critical to your application.

FAQ

  • How do I get the SDK to work with my Asset Service protected by UAA?

    • The SDK will use the bearer token obtained from the AuthenticationManager to communicate with the Asset Service.
  • How do I get the SDK and Asset to work with a user token (Password Grant type)?

    • You need to add the Asset Service zone to client authorities and the group for the user(s) you want to have access the Asset Service via the SDK.

    • Your UAA client and user(s) group will look something like the images below.

    • Client authorities

    • User group

    • Please consult the UAA and Asset service documentation for more details.

Next Steps