GithubHelp home page GithubHelp logo

isabella232 / emmasdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from myemma/emmasdk

0.0 0.0 0.0 380 KB

A static library for iOS and a dynamic Cocoa framework for OS X.

License: MIT License

Objective-C 100.00%

emmasdk's Introduction

Emma SDK

An Objective-C client library for the Emma HTTP API. Builds a static library for iOSuse as well as a Cocoa framework for OS X.

Cloning

EmmaSDK uses submodules to manage its dependency tree.

  • Clone the repository:

    git clone [email protected]:myemma/emma-sdk.git

  • Clone the dependency tree:

    git submodule update --init --recursive

Integrating the SDK

We recommend adding EmmaSDK as a submodule of your project. Ensure that you have properly cloned EmmaSDK and recursively cloned its dependencies as described above.

  • Drag the EmmaSDK.xcodeproj into the Xcode project explorer pane of your project.
  • Select your project from the explorer pane, then select your application target. Select the Build Phases tab.
  • Add the EmmaSDKiOS static library target (for iOS projects) or the EmmaSDK framework target (for OS X projects) under Target Dependencies.
  • Add the output of the target dependency (libEmmaSDK.a or EmmaSDK.framework) in the Link Binary With Libraries area.
  • Use #import "EmmaSDK.h" anywhere you wish to use the Emma SDK.

Using the SDK

Initialize the SDK with your account info:

#import "EmmaSDK.h"

…

EMClient.shared.publicKey = @"Your Public API Key";
EMClient.shared.privateKey = @"Your Public API Key";
EMClient.shared.accountID = @"Your Account ID";

…

Use the client to make API calls. The API client performs asynchronous operations using ReactiveCocoa.

[[EMClient.shared 
    getMembersInRange:(EMResultRange){ .start = 0, .end = 50 }] 
    subscribeNext:^ void (NSArray *members) {
    NSLog(@"Got members: %@", members);
}];

emmasdk's People

Contributors

bvanderveen avatar wovchko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.