Search…
Integrating the Administrative API
Integrate the Entitlements Administrative API with your own entitlements system
The Sudo Platform Entitlements administrative API is provided as a GraphQL API.
Invoke these APIs using a GraphQL client. You must specify an API key in a x-api-key header when making requests.
You can also use Sudo Entitlements Admin SDK to invoke these APIs in JavaScript, TypeScript, Swift or Kotlin. In order to use the SDK you must obtain the Sudo Platform client configuration file by following the instructions in Complete the Getting Started Guide.

Integrate the iOS SDK

Add this line to your Podfile.
1
pod 'SudoEntitlementsAdmin'
Copied!
Install pod dependencies by running the following command in your project directory:
1
pod install --repo-update
Copied!
This will update the local CocoaPods repository and install the latest version of the Sudo Entitlements Admin SDK.

Integrate the Android SDK

To use Sudo Entitlements Admin SDK in an Android app you need to add SudoEntitlementsAdmin library as a dependency to your project.
Edit the app module Gradle script (build.gradle) and add SudoEntitlementsAdmin library as a dependency.
gradle
1
dependencies {
2
api 'com.sudoplatform:sudoentitlementsadmin:$latest_version'
3
}
Copied!
Edit AndroidManifest.xml to add the following app permissions:
Diff
1
<?xml version="1.0" encoding="utf-8"?>
2
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ xmlns:tools="http://schemas.android.com/tools"
4
package="com.sudoplatform.sampleapp">
5
6
+ <uses-permission android:name="android.permission.INTERNET" />
7
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
8
+ <uses-permission android:name="android.permission.WAKE_LOCK" />
9
+ <uses-permission android:name="android.permission.READ_PHONE_STATE" />
10
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
11
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
12
13
<application
14
+ tools:replace="android:allowBackup"
15
+ android:allowBackup="false"
Copied!

Integrate the JS SDK

To use the Sudo Entitlements Admin SDK in a Web or Node.js project, you must add @sudoplatform/sudo-entitlements-admin as a dependency to your project.
1
yarn add '@sudoplatform/sudo-entitlements-admin'
2
# or
3
npm install --save '@sudoplatform/sudo-entitlements-admin'
Copied!

Initializing SudoEntitlementsAdminClient

Swift
Kotlin
TypeScript
1
let client = try DefaultSudoEntitlementsAdminClient(apiKey: apiKey)
2
Copied!
1
val client = SudoEntitlementsAdminClient.builder(
2
appContext,
3
apiKey
4
).build()
Copied!
1
const sudoEntitlementsAdmin = new DefaultSudoEntitlementsAdminClient(
2
apiKey,
3
)
Copied!
For endpoint information and to obtain an API key send us a request.
Last modified 13d ago