Back to Collection Items
#import <CkoHttp.h>
#import <CkoStringBuilder.h>
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkoHttp *http = [[CkoHttp alloc] init];
BOOL success;
[http SetRequestHeader: @"Authorization" value: @"{{Authorization}}"];
[http SetRequestHeader: @"Content-Type" value: @"application/json"];
CkoStringBuilder *sbResponseBody = [[CkoStringBuilder alloc] init];
success = [http QuickGetSb: @"https://domain.com/profile/{{profileid}}/{{acctid}}/{{merchid}}" sbContent: sbResponseBody];
if (success == NO) {
NSLog(@"%@",http.LastErrorText);
return;
}
NSLog(@"%@%d",@"Response status code = ",[http.LastStatus intValue]);
NSLog(@"%@",[sbResponseBody GetAsString]);
Curl Command
curl -X GET
-H "Authorization: {{Authorization}}"
-H "Content-Type: application/json"
https://domain.com/profile/{{profileid}}/{{acctid}}/{{merchid}}
Postman Collection Item JSON
{
"name": "Profile (Get)",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "{{Authorization}}"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"url": {
"raw": "{{url}}/profile/{{profileid}}/{{acctid}}/{{merchid}}",
"host": [
"{{url}}"
],
"path": [
"profile",
"{{profileid}}",
"{{acctid}}",
"{{merchid}}"
]
},
"description": "[Profile Documentation](https://developer.cardconnect.com/cardconnect-api#profile)"
},
"response": [
]
}