Giter Site home page Giter Site logo

fitforce's Introduction

fitforce

Installation

  1. Checkout or download the Fitforce library from GitHub.

    $ git clone [email protected]:shobyabdi/fitforce.git
  2. Install the Force.com Migration Tool plugin for Ant, if you don't already have it.

  3. Edit install/build.properties to insert your Salesforce username and password. Since you will be using the API to access Salesforce, remember to append your Security Token to your password.

  4. Open your command line to the install folder, then deploy using Ant:

    $ ant deployFitforce

Now all the library code is in your org and you're ready to start coding!

Profile Setup

  • Custom App Settings
    • OAuth Consumer Playground: Visible
  • Tab Settings
    • API Tester: Default On
    • My Fitbit Profile: Default On
    • OAuth Services: Default On
    • Authorize: Default On
  • Verify that your Profile has read/write permissions to the following objects
    • OAuth Services
    • OAuth Tokens
    • Saved URLs

Application Setup

  • Register your application with Fitbit
    • https://dev.fitbit.com/apps/new
    • Provide Application information and hit Register
    • Once you have registered and have application params, return to Fitforce application
  • Create your OAuth Service in the App
    • Go to OAuth Services tab
    • Click New
      • Service Name: fitforce
      • Other fields from App I registered in dev.fitbit.com
        • Request Token URL
        • Access Token URL
        • Consumer Key
        • Consumer Secret
        • Authorization URL
    • Hit Save
    • Now you can start signing up users!
  • Get your user signed up in the app
    • Go to My Fitbit Profile tab
    • Click the link: Click Here if you would like to Authorize
    • Make sure select drop down is on fit force and click authorize
    • Login with your Fitbit record and Authorize Application
  • Share with Chatter!!
    • Create a Collaboration Group called "Fitbit Owners" without the quotes
    • Go back to My Fitbit Profile tab
    • Chatter starts out Hidden
    • Click Broadcast My Results to show off your results!

Additional Info

  • Recent version of Jespers sfdc oath playground on Github
  • Whats been modified to the sfdc_oauth_playground?
    • Custom field Fitbit User Id added to OAuth Token
    • OAuth.cls with one line at 154: t.Fitbit_User_Id__c = rp.get('encoded_user_id');
    • Thats it!!
  • Dependencies
    • Chatter needs to be activated

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.