How to get the users whom I am following in getstream or users who are following me.
Suppose few users are following me, how can I get to know who is following me.
You can get follower by calling method followers() . feed.followers() to get all followers, to paginate result you can give limit and index like feed.followers(0,10) fetch first 10 followers
you can fetch users whom you are following using feed.following() and also in this case use index and limit like feed.following(0,10) fetch first 10 users you are following.
Related
I am using the marketing API
I have an issue with the pagination, it seems like it ignores the start and count.
I am using the start and count query parameters and no matter what number I put in the count, I get a response with all the results
I followed this document for pagination:
https://learn.microsoft.com/en-us/linkedin/shared/api-guide/concepts/pagination
I use this endpoint:
https://api.linkedin.com/v2/adAnalyticsV2
my parameters include:
start=0&count=10&q=statistics&timeGranularity=MONTHLY ....
in the response, I received 821 elements without any pagination. instead of 10 per page.
if I use the logic in the docs the values for start and count will not affect the results or the query
what am I doing wrong?
I don't want to use it without pagination and find out later that I missed records.
Thanks,
Roiy
I have used pagination to retrieve the posts of the organization, and its working for me
my api call is
api_url = "https://api.linkedin.com/v2/shares?q=owners&owners=urn%3Ali%3Aorganization%3A123456&sharesPerOwner=1000&count=100&start=0"
one thing importantly i noticed is this does not requires restli2.0 version(dont pass this in header)
In examples on the Get stream Website, I see that they show examples where users are following other users and then they get to see the posts of the user they are following. How can I change this and make it so that users can follow a category(s) instead of a user and then see posts on their feed from the category(s) they are following? Currently, when I make a new post, I add a custom field to capture category id. Not sure what to do next.
I'm using the Get Stream for Laravel.
In Stream a feed can represent anything. So it can be a user, or a timeline (wall) or a category. Simply create a feed for the category and add the activities to it with the TO field. Then your user can follow the category feed.
More information about this can be found on the official docs: https://getstream.io/docs/#targetting
I wrote a small app to query the Instagram public_content api and everything works perfectly. I've been able to successfully download all data from several different usernames. However, I have attempted to query with the username "nasa" and the results which are returned are for the username "nasagoddard." Why would this be the case?
When you search for nasa using Instagram User search API, it returns about 25 similar username, nasagoddard is at top, and then nasa is second, they order search results by popularity of accounts, so you cannot assume the username you search is the first results, you have to iterate thru the results and compare/pick the username that matches your search. and then get photos for that user_id.
Try switching usernames for user_id. User ids are always unique and should work
To get an id from a username use this tool: https://smashballoon.com/instagram-feed/find-instagram-user-id/
Instead of searching for "nasa", I searched for "#nasa" and the correct result was returned.
in my application, i enter a user name and get his photo.
(To get photos, i use: https://api.instagram.com/v1/users/3/media/recent/?access_token = ...)
Request returns only 20 pictures, how to get all photos user?
I want to get photos of this user which contain his likes.
How can this be done?
I have an idea to get all the pictures that have user and check each pictures does it have his like ?!
But I get only the data for the four member who delivered Like, although photo has 50 likes. (See the screenshot below). Why so ? How to fix it ?
Thanks for the help.
It's a two step process:
1) Perform a GET request to /users/user-id/media/recent inorder to get the most recent media published by a user.
2) Then perform a second GET request to /media/media-id/likes in order to get a list of users who have liked this media.
At this point you can record all the media-id's which contain likes by the specific person you want.
Here is the API for instagram users:
http://instagram.com/developer/endpoints/users/
Here is the API for instagram likes:
http://instagram.com/developer/endpoints/likes/
As for getting the entire history, I apologize but I'm unclear as to how to go about doing more than what they provide.
Please let me know if you have any questions!
I'm trying to get all users at same place as me (venues with a lot of people), but the endpoint https://api.foursquare.com/v2/venues/VENUE_ID/herenow returns more than 30 users in count property and only 30 people in items list.
Is there any way to get all check-ins and users at same place as me?
you can use the parameter limit to retrieve up to 500 users per request. use the parameter offset to page through more results. see here for more information.