By using below api for getting track list of soundcloud user
Not working example:
https://api.soundcloud.com/users/tycho/tracks.json?client_id=xxxx...
Working example:
https://api.soundcloud.com/users/chk-chk-chk/tracks.json?client_id=xxxx...
This api provides result for some user only
I am not able to get track of all user
Is there anything else that i forgot to do
Please help
Soundcloud API is blocking some requests from some countries for some users.
Users can choose not allowing api calls on their tracks.
Related
Its been a while since i last used the twitter api, Using Javscript, I would like to be able to search any random twitter users feed.
On the page I would enter there Twitter username and the app would go and find the users data returned as JSON.
I'm not after the code, I would just like to know what is the best API to use for this?
Do I just need the REST API, I assume this:
https://dev.twitter.com/rest/public/search
Also, authentication do I need to authenticate my app? how should I do that if its needed?
thanks.
If you want all of my tweets (#edent) you will need to use the User Timeline API
For example:
https://dev.twitter.com/rest/reference/get/statuses/user_timeline?screen_name=edent
Yes, you will need your app to be authenticated. You will need to use OAuth
I am trying to access live tweets of a user whenever he tweets it. So, all I want is something that continuously monitors a user account and whenever he tweets something I have to capture it. All the tweets are random so I cannot use any filters.
For any security reasons, if I cannot access other's tweets can I do it on my own account?
With tweepy you can connect to the REST API or the Streaming API.
Using the Streaming API you can use the filter endpoint to select the users you wish to follow with that streaming connection and you will receive updates as they get published.
Twitter's documentation: https://dev.twitter.com/docs/api/1.1/post/statuses/filter, tweepy's code: https://github.com/tweepy/tweepy/blob/master/tweepy/streaming.py
Tweepy's documentation doesn't give examples on the Streaming functions but you can find sample code searching at GitHub or StackOverflow for "tweepy filter follow".
Tweepy talks to the Twitter REST API, and the REST API doesn't have any way to react to someone posting a tweet.
HOWEVER...
You could certainly write an application that retrieves the tweets of a partcular user and looks for any tweets that weren't there the last time you checked.
You'd want to be cautious about how often you check so you don't run afoul of the API rate limits.
I'm currently working on a YouTube app that will allow users to Log In with their Google Accounts so they can subscribe to other YouTube channels and Like/Dislike videos. However Google doesn't seem to give me access to their YouTube channels even though that option is turned on.
As you can see here the YouTube API is turned on
However when the user is presented to use my App with his account it doesn't ask the user for access to the YouTube channel.
When you look at other applications you can see that they ask for permission for their channel.
Has anyone experienced something similar or does anyone know if I'm doing something wrong :( ?
This looks like a case of your app not passing the proper scope when doing the oAuth authentication. In your code, where your client sets the oAuth scopes, make sure that this is one of the ones you're passing:
https://www.googleapis.com/auth/youtube
For the purpose of stream mining, I want to get the time-stamped click-streams of views of a particular Youtube video of another user, so not of the logged in user. I checked the v3 Javascript client library and it seems to me it can only retrieve the activities of the current authenticated user. Is it true? Or am I missing something?
Can I get this with youtube.activities.list?
Some channel activities are retrievable without having to have a user authenticate; if you hit this endpoint:
GET https://www.googleapis.com/youtube/v3/activities?part=snippet%2CcontentDetails&channelId={CHANNEL_ID}&key={YOUR_API_KEY}
then some of the reported activities that can be returned include uploads, bulletins, adding items to playlists, etc. Other activities you might wish to track will require that the user authenticate before the API will return it, however.
I'm trying to get a list of users who have authorized my Twitter application. I've tried checking the API docs, but there seems to be no twitter application specific APIs that I can find. I'm trying to avoid having to store these twitter user names myself, since the user list would be the exact same as Twitter's authorized user list and even handle deauthorized users for me.
No, there's no way to obtain this information from the Twitter API. If you're interested in keeping track of the users who are using your application, you'll need to track it yourself.