EasyPost is a simple shipping API. You can sign up for an account at https://easypost.com
Update EZPConfiguration.m:
NSString * const kTestSecretAPIKey = @"YOUR_TEST_API_KEY";
NSString * const kLiveSecretAPIKey = @"YOUR_LIVE_API_KEY";
to match your configuration.
Lib. includes asynchronous and synchronous access to the API. eg. to create EZPAddress:
Asynchronous:
+ (void)create:(NSDictionary *)parameters completion:(EZPRequestCompletion)completion;
Synchronous:
+ (EZPAddress *)create:(NSDictionary *)parameters;
Synchronous is probably anti-pattern, but it's easier to use (to avoid long nesting of asynchronous callbacks). Asynchronous and synchronous version can be combined.
The project includes two sample applications:
- EasyPoster (OS X)
- EasyPosterMobile (iOS)
https://github.com/mproberts/objc-promise https://github.com/aryaxt/OCMapper
Up-to-date documentation at: https://www.geteasypost.com/docs