Find below links to our GitHub page, where you can find SDKs in different programming languages. The instructions on how to use them can be found in README in the respective GitHub projects.
...
Find below a link to access Simple our Apiary page, with simple examples to use PEKAT VISION API APIs, allowing to start a project, stop running a project or get a list of projects.
Tip |
---|
List of Projects
Code Block | ||||
---|---|---|---|---|
| ||||
NSURL *URL = [NSURL URLWithString:@"https://private-anon-02c3e7430d-pekatvisionstarter.apiary-mock.com/projects/list?password={password}"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:URL];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *task = [session dataTaskWithRequest:request
completionHandler:
^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
// Handle error...
return;
}
if ([response isKindOfClass:[NSHTTPURLResponse class]]) {
NSLog(@"Response HTTP Status code: %ld\n", (long)[(NSHTTPURLResponse *)response statusCode]);
NSLog(@"Response HTTP Headers:\n%@\n", [(NSHTTPURLResponse *)response allHeaderFields]);
}
NSString* body = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"Response Body:\n%@\n", body);
}]; |
...