Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shu223/crunchbase-api-client-for-ios

CrunchBase API Client for iOS.
https://github.com/shu223/crunchbase-api-client-for-ios

Last synced: about 2 months ago
JSON representation

CrunchBase API Client for iOS.

Awesome Lists containing this project

README

        

#CrunchBase API Client for iOS

In Progress.

##Usage

###1. Add CrunchBase Client to your project

Add followings to your project.

- CrunchBaseClient.h, CrunchBaseClient.m
- [AFNetworking](https://github.com/AFNetworking/AFNetworking)

###2. Set API Key

You can create your API Key from [http://developer.crunchbase.com/](http://developer.crunchbase.com/).

````
#import "CrunchBaseClient.h"
````

````
[CrunchBaseClient setAPIKey:@"YOUR API KEY"];
````

##Examples

- Retrieve a specific **company**'s information

````
[CrunchBaseClient companyWithName:@"appsocially"
handler:
^(NSDictionary *result, NSError *error) {

// Do something.
}];
````

- Search by **location** (CLLocation object)

````
[CrunchBaseClient searchByLocation:location
radiusInMiles:50.0
handler:
^(NSDictionary *result, NSError *error) {

// Do something.
}];
````

- Search by **state**

````
[CrunchBaseClient searchByState:@"CA"
handler:
^(NSDictionary *result, NSError *error) {

// Do something.
}];
````

##License

MIT License