I am building a REST API using Mule, which will integrate with Twitter’s API to perform some analysis on recent tweets. For this, I have to connect to Twitter API v1.1
I have a few questions regarding this:
Do I have to use a Twitter Developer account to do this? Or can this be achieved without Twitter dev account?
Since I haven't done worked with Twitter APIs before, any guidance will be a great help.
Thanks.
To use Twitter APIs you need to request developer access: https://developer.twitter.com/en/docs/twitter-api/getting-started/getting-access-to-the-twitter-api
That's unrelated to consuming those APIs from a Mule application or from something else.
Related
So I'm trying to build an iOS app (Swift 2) which integrates FitBit.
Once the user open the 'Walks' page, the user should be able to see his daily number of steps.
Ideally, we do not want every user to register to FitBit.
So I'm trying to figure out if there is a way to fetch the data from your Fitbit directly, rather than calling the Fitbit API every time. I only require the number of steps walked daily.
TIA!
Currently there is only one way to fetch data from FitBit, Oauth 2.0
API. There is no other way. So it is not possible to fetch FitBit data
without SignIn.
If you want to integrate FITBIT OAUTH 2.0 API, Follow step by step FITBIT tutorial
https://appengineer.in/2016/04/30/fitbit-aouth-in-ios-app/
The short answer seems to be: No.
"The Fitbit API" is an HTTP OAuth rest api, which allows your server (or http-client) to exchange data with the Fitbit servers.
To the best of my knowledge there is no other API or official way to get to this data. Also fitbit does not currently write to the HealthKit Api, so it is not possible to get step data that way. According to this article:
https://gigaom.com/2014/12/24/how-to-use-a-fitbit-with-apple-health/
there should be some workaround, but I have not tried this trick, and it might have other disadvantages and require your users to install other apps on their phones. I imagine that the dataexchange between the fitbit and the phone through bluetooth would be encrypted but that is purely speculation on my side :-)
We have chosen to use the official fitbit Api which has excellent documentation and is rock-solid. Good luck in your endeavors!
I am trying to load some twitter feeds of a user on Swift iOS App. On twitter Documentation, I found the API is:
https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi&count=2
which returns:
{"errors":[{"message":"Bad Authentication data","code":215}]}
Older Rest API did not require. Newer API requires authentication.
Requires authentication? Yes
How do I get that working? Any tutorials would be even sweeter!
Before marking this question duplicate please bear in mind that I have done a good search and none of the answers answered my questions because a lot them point to older Rest APIs.
Take a look at Twitter Fabric http://dev.twitter.com/fabric which is a free SDK (compatible with Swift) that provides easy authentication via either guest or user login. Sample app written in Swift at https://github.com/twitterdev/cannonball-ios
If you would prefer to use raw REST calls against the API, follow the OAuth details in our dev documentation https://dev.twitter.com/oauth
In settings of your simulator go to accounts -> Twitter, and login there in actual twitter account. As you try to login, it doesn't know what user to use, so you need to specify it.
I want to use Google Reporting API to get the users' activity report (last login, etc).
My application is using oauth 2.0 to access other Google APIs. But it seems like Google Reporting API is not supporting oauth 2.0. Any suggestions how should I do it ? Implement oauth 1 or use different Google API (if it exists) to get users' activity report?
I think you are looking at the old documentation for the reporting API.
For the brand new reports API (https://developers.google.com/admin-sdk/reports/v1/guides/authorizing), it is encouraged to use OAuth 2.0.
Notice that the older API is called reporting API, but the new API that was just released at the IO is called reports API.
I want to authorize a Twitter account using the Signpost library. I have done this in Android but want to implement it on BlackBerry. I have searched for tutorials on how to authorize a Twitter account but didn't find any useful resources. Can any one provide a reference or tutorial for implementing it on BlackBerry.
Have you seen Twitter API ME?
I've tried a couple of ways (http://emmense.com/php-twitter/ and http://www.webmaster-source.com/2009/04/05/post-to-twitter-from-a-php-script/) to post updates to my twitter account but I am getting the response:
Basic authentication is not supported
I had a look at the twitter website and they said something about the new OAuth for authentication. Is this why my code isn't working?
Does anyone know of some PHP code that works?
This is correct. They recently adopted OAuth as their sole login platform for 3rd party apps as a security precaution.
Check out their developer area for examples:
http://apiwiki.twitter.com/w/page/22554657/OAuth-Examples
Basic auth is deprecated now. Check out this library https://github.com/abraham/twitteroauth for using OAuth in your application
It took me several hours to create this PHP script but it is working. Just make sure that your hosting company supports cURL. If you don't need the geo features you can cut them out.