All URIs are relative to https://api.phone.com/v4
Method | HTTP request | Description |
---|---|---|
getAccountSchedule | GET /accounts/{account_id}/schedules/{schedule_id} | Show details of an individual schedule |
listAccountSchedules | GET /accounts/{account_id}/schedules | Get a list of schedules for an account |
-(NSURLSessionTask*) getAccountScheduleWithAccountId: (NSNumber*) accountId
scheduleId: (NSNumber*) scheduleId
completionHandler: (void (^)(SWGScheduleFull* output, NSError* error)) handler;
Show details of an individual schedule
Show details of an individual schedule
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
NSNumber* accountId = @56; // Account ID
NSNumber* scheduleId = @56; // Schedule ID
SWGSchedulesApi*apiInstance = [[SWGSchedulesApi alloc] init];
// Show details of an individual schedule
[apiInstance getAccountScheduleWithAccountId:accountId
scheduleId:scheduleId
completionHandler: ^(SWGScheduleFull* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGSchedulesApi->getAccountSchedule: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
accountId | NSNumber* | Account ID | |
scheduleId | NSNumber* | Schedule ID |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
-(NSURLSessionTask*) listAccountSchedulesWithAccountId: (NSNumber*) accountId
filtersId: (NSArray<NSString*>*) filtersId
filtersName: (NSArray<NSString*>*) filtersName
sortId: (NSString*) sortId
sortName: (NSString*) sortName
limit: (NSNumber*) limit
offset: (NSNumber*) offset
fields: (NSString*) fields
completionHandler: (void (^)(SWGListSchedules* output, NSError* error)) handler;
Get a list of schedules for an account
Get a list of schedules for an account
SWGDefaultConfiguration *apiConfig = [SWGDefaultConfiguration sharedConfig];
// Configure API key authorization: (authentication scheme: apiKey)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"Authorization"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"Authorization"];
NSNumber* accountId = @56; // Account ID
NSArray<NSString*>* filtersId = @[@"filtersId_example"]; // ID filter (optional)
NSArray<NSString*>* filtersName = @[@"filtersName_example"]; // Name filter (optional)
NSString* sortId = @"sortId_example"; // ID sorting (optional)
NSString* sortName = @"sortName_example"; // Name sorting (optional)
NSNumber* limit = @56; // Max results (optional)
NSNumber* offset = @56; // Results to skip (optional)
NSString* fields = @"fields_example"; // Field set (optional)
SWGSchedulesApi*apiInstance = [[SWGSchedulesApi alloc] init];
// Get a list of schedules for an account
[apiInstance listAccountSchedulesWithAccountId:accountId
filtersId:filtersId
filtersName:filtersName
sortId:sortId
sortName:sortName
limit:limit
offset:offset
fields:fields
completionHandler: ^(SWGListSchedules* output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error calling SWGSchedulesApi->listAccountSchedules: %@", error);
}
}];
Name | Type | Description | Notes |
---|---|---|---|
accountId | NSNumber* | Account ID | |
filtersId | NSArray<NSString>** | ID filter | [optional] |
filtersName | NSArray<NSString>** | Name filter | [optional] |
sortId | NSString* | ID sorting | [optional] |
sortName | NSString* | Name sorting | [optional] |
limit | NSNumber* | Max results | [optional] |
offset | NSNumber* | Results to skip | [optional] |
fields | NSString* | Field set | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]