All URIs are relative to http://http:/v1
Method | HTTP request | Description |
---|---|---|
entitlementsAllowDelete | DELETE /entitlements/allow | Remove an entitlement |
entitlementsAllowGet | GET /entitlements/allow | Check if global entitlements are enabled |
entitlementsAllowPost | POST /entitlements/allow | Add an entitlement for all users |
entitlementsAllowUuidPost | POST /entitlements/allow/{uuid} | Grant product access to a customer |
entitlementsFreePassGet | GET /entitlements/free-pass | Verify given free pass hash |
entitlementsGet | GET /entitlements | List all entitlements |
entitlementsGlobalGet | GET /entitlements/global | Lists all past and future global entitlements |
-(NSURLSessionTask*) entitlementsAllowDeleteWithBody: (NSNumber*) body
authUser: (NSString*) authUser
authorization: (NSString*) authorization
completionHandler: (void (^)(NSArray<NSObject*>* output, NSError* error)) handler;
Remove an entitlement
NSNumber* body = @56; //
NSString* authUser = @"authUser_example"; // (optional)
NSString* authorization = @"authorization_example"; // (optional)
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// Remove an entitlement
[apiInstance entitlementsAllowDeleteWithBody:body
authUser:authUser
authorization:authorization
completionHandler: ^(NSArray<NSObject*>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsAllowDelete: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
body | NSNumber* | ||
authUser | NSString* | [optional] | |
authorization | NSString* | [optional] |
NSArray<NSObject>**
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) entitlementsAllowGetWithAuthUser: (NSString*) authUser
authorization: (NSString*) authorization
ip: (NSString*) ip
paper: (NSString*) paper
completionHandler: (void (^)(NSArray<OAIPersistedEntitlementAccess>* output, NSError* error)) handler;
Check if global entitlements are enabled
NSString* authUser = @"authUser_example"; // (optional)
NSString* authorization = @"authorization_example"; // (optional)
NSString* ip = @"ip_example"; // (optional)
NSString* paper = @"paper_example"; // (optional)
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// Check if global entitlements are enabled
[apiInstance entitlementsAllowGetWithAuthUser:authUser
authorization:authorization
ip:ip
paper:paper
completionHandler: ^(NSArray<OAIPersistedEntitlementAccess>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsAllowGet: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
authUser | NSString* | [optional] | |
authorization | NSString* | [optional] | |
ip | NSString* | [optional] | |
paper | NSString* | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) entitlementsAllowPostWithBody: (OAIEntitlementAccess*) body
authUser: (NSString*) authUser
authorization: (NSString*) authorization
completionHandler: (void (^)(NSArray<NSObject*>* output, NSError* error)) handler;
Add an entitlement for all users
OAIEntitlementAccess* body = [[OAIEntitlementAccess alloc] init]; //
NSString* authUser = @"authUser_example"; // (optional)
NSString* authorization = @"authorization_example"; // (optional)
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// Add an entitlement for all users
[apiInstance entitlementsAllowPostWithBody:body
authUser:authUser
authorization:authorization
completionHandler: ^(NSArray<NSObject*>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsAllowPost: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
body | OAIEntitlementAccess* | ||
authUser | NSString* | [optional] | |
authorization | NSString* | [optional] |
NSArray<NSObject>**
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) entitlementsAllowUuidPostWithUuid: (NSString*) uuid
body: (OAIEntitlementAccess*) body
authUser: (NSString*) authUser
authorization: (NSString*) authorization
completionHandler: (void (^)(NSArray<NSObject*>* output, NSError* error)) handler;
Grant product access to a customer
NSString* uuid = @"uuid_example"; //
OAIEntitlementAccess* body = [[OAIEntitlementAccess alloc] init]; //
NSString* authUser = @"authUser_example"; // (optional)
NSString* authorization = @"authorization_example"; // (optional)
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// Grant product access to a customer
[apiInstance entitlementsAllowUuidPostWithUuid:uuid
body:body
authUser:authUser
authorization:authorization
completionHandler: ^(NSArray<NSObject*>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsAllowUuidPost: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
uuid | NSString* | ||
body | OAIEntitlementAccess* | ||
authUser | NSString* | [optional] | |
authorization | NSString* | [optional] |
NSArray<NSObject>**
No authorization required
- Content-Type: application/json;charset=utf-8
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) entitlementsFreePassGetWithAuthUser: (NSString*) authUser
authorization: (NSString*) authorization
freePassHash: (NSString*) freePassHash
completionHandler: (void (^)(NSNumber* output, NSError* error)) handler;
Verify given free pass hash
NSString* authUser = @"authUser_example"; // (optional)
NSString* authorization = @"authorization_example"; // (optional)
NSString* freePassHash = @"freePassHash_example"; // (optional)
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// Verify given free pass hash
[apiInstance entitlementsFreePassGetWithAuthUser:authUser
authorization:authorization
freePassHash:freePassHash
completionHandler: ^(NSNumber* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsFreePassGet: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
authUser | NSString* | [optional] | |
authorization | NSString* | [optional] | |
freePassHash | NSString* | [optional] |
NSNumber*
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) entitlementsGetWithCompletionHandler:
(void (^)(NSDictionary<NSString*, NSArray<NSString*>*>* output, NSError* error)) handler;
List all entitlements
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// List all entitlements
[apiInstance entitlementsGetWithCompletionHandler:
^(NSDictionary<NSString*, NSArray<NSString*>*>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsGet: %@", error);
}
}];
This endpoint does not need any parameter.
NSDictionary<NSString, NSArray<NSString>>**
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) entitlementsGlobalGetWithAuthUser: (NSString*) authUser
authorization: (NSString*) authorization
completionHandler: (void (^)(NSArray<OAIPersistedEntitlementAccess>* output, NSError* error)) handler;
Lists all past and future global entitlements
NSString* authUser = @"authUser_example"; // (optional)
NSString* authorization = @"authorization_example"; // (optional)
OAIEntitlementsApi*apiInstance = [[OAIEntitlementsApi alloc] init];
// Lists all past and future global entitlements
[apiInstance entitlementsGlobalGetWithAuthUser:authUser
authorization:authorization
completionHandler: ^(NSArray<OAIPersistedEntitlementAccess>* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling OAIEntitlementsApi->entitlementsGlobalGet: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
authUser | NSString* | [optional] | |
authorization | NSString* | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json;charset=utf-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]