Giter Site home page Giter Site logo

buddy-ios-sdk's Introduction

Buddy SDK

Introduction

Buddy enables developers to build engaging, cloud-connected apps without having to write, test, manage or scale server-side code or infrastructure. We noticed that most mobile app developers end up writing the same code over and over again. User management, photo management, geolocation checkins, metadata, and more.

Buddy's easy-to-use, scenario-focused APIs let you spend more time building your app, and less time worrying about backend infrastructure.

Let us handle that stuff for you!

Features

For developers the Buddy Platform offers turnkey support for features like the following:

  • User Accounts - create, delete, authenticate users.
  • Photos - add photos, search photos, share photos with other users.
  • GeoLocation - checkin, search for places, list past checkins.
  • Push Notifications - easily send push notifications to iOS, Android, or Microsoft devices.
  • Messaging - send messages to other users, create message groups.
  • Friends - set up social relationships between users with friends lists.
  • Game Scores, Metadata, and Boards - Keep track of game stores and states for individual users as well as across users.
  • Commerce - Offer items for in-app purchase via Facebook Commerce.
  • And more - Checkout the rest of the offering at buddy.com/developers.

Getting Started

Building the Buddy SDK will result in a file called libBuddySdk.a, which can be found in the "Products" folder of your Xcode project. There are actually several flavors of this file, which you can find by ctrl-clicking on libBuddySdk.a and choosing "Show In Finder".

Once you've got the libBuddySDK.a file, perform the following steps to use it with your new iOS project.

  1. Drag the libBuddySDK.a file onto the project in the Xcode Project Navigator. A dialog will pop up when you add the file, choose the default actions (copy files to destination group, create groups...)
  2. Drag the "include" folder onto the project source node of the Project Navigator. Choose the default options, as in #1. If you'd like, you can rename this folder to "BuddySDK", this is optional.
  3. Try the code sample below!

How It works

Getting rolling with the Buddy SDK is very easy. First you'll need to go to dev.buddy.com, to create an account and an application. This will create an application entry and a key pair consisting of an Application Name and an Application Password.

Once you have those, you just create a BuddyClient instance, and call methods on it.

Below is some code showing the creation of a user, then uploading a profile photo for that user.

Code Sample

// visit dev.buddy.com to get an app name and password
BuddyClient *buddyClient = [[BuddyClient alloc] initClient:kBuddyApplicationName
                                               appPassword:kBuddyApplicationPassword];

[buddyClient login:@"a username"
          password:@"the password"
          callback:^(BuddyAuthenticatedUserResponse *response) {
                 BuddyAuthenticatedUser *buddyUser = response.result;
                 if (buddyUser)
                 {
                     NSLog(@"User Login successfull with Token: %@", buddyUser.token);
                 }
                 else
                 {
                     NSLog(@"User Login failed");
                 }
            }
];

Docs

Full documentation for Buddy's services are available at Buddy.com, and iOS library docs are available at http://buddy.com/iossdk

Contributing Back: Pull Requests

We'd love to have your help making the Buddy SDK as good as it can be!

To submit a fix to the Buddy SDK please do the following:

  1. Create your own fork of the Buddy SDK
  2. Make the fix to your fork
  3. Before creating your pull request, please sync your repo to the current state of the parent repo: git pull --rebase origin master
  4. Commit your changes, then submit a pull request for just that commit.

License

Copyright (C) 2012 Buddy Platform, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

buddy-ios-sdk's People

Contributors

bradserbuddy avatar shawnburke avatar

Watchers

 avatar

Forkers

dinoegg

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.