The RapidAPI Developer Hub

Welcome to the RapidAPI developer hub. You'll find comprehensive guides and documentation to help you start working with RapidAPI as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Documentation

Objective-C

Query RapidAPI using Objective-C

In order to consume APIs on RapidAPI in Objective-C, you must first install the SDK:

pod "RapidAPISDK", "~> 0.1"

Once you've installed the SDK, require it in your code:

#import <RapidConnectSDK/RapidConnectSDK.h>

You can now instantiate a new RapidAPI client with your ProjectName and ProjectKey:

RapidConnect *rapid = [[RapidConnect alloc] initWithProjectName:@'ProjectName' andToken:@'ProjectKey'];

Now, to call an API, all you have to do is write the following code:

[rapid callPackage:@"APIName" block:@"FunctionName" withParameters:[NSDictionary dictionaryWithObjectsAndKeys: 
	@"ParameterValue1", @"ParameterKey1",
	@"ParameterValue2", @"ParameterKey2",

nil]
	success:^(NSDictionary *responseDict){
		NSLog(@"%@",responseDict);
	}failure:^(NSError *error){
		NSLog(@"%@",[error localizedDescription]);

Objective-C

Query RapidAPI using Objective-C