Giter Club home page Giter Club logo

fitbitphp's People

Contributors

djchen avatar jgkim avatar pavelrisenberg avatar tafkas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fitbitphp's Issues

Fatal error: Class 'OAuth' not found in .../fitbitphp.php on line 62

Hi,

Thanks for all your work on this! Just getting feet wet here and getting the following error. I have the secret+key+callback in my calls per your example.

Havn't touched the fitbitphp.php , yet I get this

Fatal error: Class 'OAuth' not found in [mypath]/fitbitphp.php on line 62

Edit: Not a server issue I have OAuth working with twitter on the same setup and different code

any help please (OAuth)

I am trying to pull my data from my fitbit using your code... but I can't seem to get past the following error message:

Fatal error: Class 'OAuth' not found in /home/tassol/stickconsultinglabs.com/stepchallenge/fitbitphp.php on line 56

Please let me know if you can help me ([email protected])

Fatal error: Fitbit request failed. Code: 504

Hello, can anyone please lend me a hand on this?
I used fitbitphp to pull in steps data into my website. it was working ok before, but recently I kept receiving fatal errors like this. Anyone can please give me some advice as to how to fix it?

Many thanks

Fatal error: Uncaught exception 'FitBitException' with message 'Fitbit request failed. Code: 504' in /home/bigrice/public_html/wp-content/plugins/fitbit_data/inc/fitbitphp.php:1851
Stack trace:
#0 /home/bigrice/public_html/wp-content/plugins/fitbit_data/cron/user_update.php(45): FitBitPHP->getTimeSeries('tracker_steps', 'today', '1m')
#1 {main}

thrown in /home/bigrice/public_html/wp-content/plugins/fitbit_data/inc/fitbitphp.php on line 1851


Fatal error: Uncaught exception 'FitBitException' with message 'Fitbit request failed. Code: 503' in /home/bigrice/public_html/wp-content/plugins/fitbit_data/inc/fitbitphp.php:1851

OAuth2

Will this code work with Fitbit's new OAuth2 process?

Without OAuth

A lot of hosts (including cloud hosts like heroku and cloudcontrol) don't have OAuth installed and make it incredibly difficult to get OAuth on those servers. This kept me from using this library originally. I found that a lot of other people on the web and the api forum complaining about that requirement.

I have ported this library over to use a pure PHP implementation of OAuth, and cleaned up the library a bunch, finally turning it into a composer install-able package.

My fork is located here: https://github.com/TheSavior/fitbitphp

I'm not sure if you would like to do anything about that, but I'm sure it would really help the community out to even just add it to the readme that there is a library that doesn't require the OAuth extension. This isn't necissarily an attempt to advertise my library, it just doesn't appear that there is ANY php library for connecting to fitbit other than this one.

rejectFriend accepts

rejectFriend is identical to acceptFriend.

I imagine the

$parameters['accept'] = 'true';

is meant to say false?

getIntradayTimeSeries method missing support for

Hello.

Thank You for this fantastic library, which has been very useful to me.

Although I am fairly familiar with the code within this library and would properly be able to contribute to the project directly myself, I am - unfortunately - very unfamiliar with the workflow of git and so, I am hoping that I could ask someone here to take a look at this on my behalf?

It seems to me that the getIntradayTimeSeries method does not currently support the input parameter defining the granularity of the data returned (i.e. the "detail-level" parameter): https://wiki.fitbit.com/display/API/API-Get-Intraday-Time-Series.

Is this something that anyone would be willing to try an implement?

Error Code 401 After a few days storing token and secret in database

Hi Pavel,

thank you for this great library it helped us a lot. I have one issue and i hope you can help me out.
I am retrieving fitbit token and secret succesfully from fitbit API. I use (https://github.com/dongri/OAuthSwift) for the oauth process. afterwards i store the credentials in my database and use your library for fetching data from fitbit, after a couple of day (2-3) i get the error 401 from fitbit. If i renew token and secret the request will work as supposed to.
The strange thing is that i use your library for few weeks and i never had to renew my token and secret till now.

i hope you can help me out. thank you.

regards,
johannes

Cannot get a https response when using OAuth Authentication

I am trying to register an app using the url of:
https://localhost.
For the callback function, I use:
https://localhost/wordpress.
When I use php api to invoke the oauth authentication, there is no https code in the response of the FitBitPHP->getProfile() that come back. The key and the value of my clients are both correct and I also set my request token and access token for OAuth. The exception shows like:
Uncaught exception 'FitBitException' with message 'Fitbit request failed. Code: ' in C:\Program Files\XAMPP\htdocs\fitbitphp.php:328

Frontend Snippet Example

Hello,

I have a problem with the below frontend snippet code. Dreamweaver gives a syntax error on line:
$fitbit= new FitBitPHP(FITBIT_KEY, FITBIT_SECRET);

and I get this when I run the code through my website:

Parse error: syntax error, unexpected T_VARIABLE in /hermes/waloraweb004/b1384/moo.framespersoundcom/fitbitwater/fitbitwater.php on line 15

A step by step guide would be extremely helpful if anyone could explain on how to implement.

Please advise,

Thank you,
Matt

initSession('http://example.com/callback.php'); $xml = $fitbit->getProfile(); print_r($xml); ?>

How to force initiation with a known certificate for oauth or suppress peerverify ssl

Hi,

Trying to setup basics of fitbit-php here.

in the php.ini file, i already have
curl.cainfo pointing to a cacert.pem file.

However - keep getting these errors.

Warning: OAuth::getRequestToken(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in /var/www/lo/g8_fbit/lib/fitbitphp.php on line 184

Warning: OAuth::getRequestToken(): Failed to enable crypto in /var/www/lo/g8_fbit/lib/fitbitphp.php on line 184

Warning: OAuth::getRequestToken(https://api.fitbit.com/oauth/request_token): failed to open stream: operation failed in /var/www/lo/g8_fbit/lib/fitbitphp.php on line 184

Any option to specify
curl verify peer ssl false ?

Alok

fitbitphp access when behind a proxy server

hi,

I require to run this application when behind a proxy server. my linux server uses proxy to connect to internet. how do i mention proxy IP address ,port, username,password settings in this API.

regards,
Irfan Ahmed

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.