Comments (6)
I have added initial support for the feed endpoint. I'll finish it up tomorrow and create a new release.
You'll be able to access the feeds and tags methods directly from the Instagram instance in the next commit.
Have a look at Instagram\SDK\Client\Features\HashtagFeaturesTrait
Example
// Retrieve the feed
$feed = $instagram->client->feed('INSERT TAG');
$feed->getRankedItems();
$feed->getItems();
// Retrieve the next batch of items
$result = $feed->next();
from instagram-api.
https://github.com/NicklasWallgren/instagram-api/tree/v0.7.6
The release was a bit rushed since I'm going away for a few days, so the API might change in future updates.
Feed example
// Retrieve hashtag feed
$message = $instagram->feed('instagram', Instagram::$FEED_TYPE_HASHTAG);
// Output top result
var_dump($message->getRankedItems());
Search example
// Search by hashtag
$message = $instagram->search('instagram', Instagram::$FEED_TYPE_HASHTAG);
// Retrieve the results collection
$result = $message->getResults();
// Pick the first entry
$hashtag = current($result);
// Retrieve the hashtag feed
$feed = $hashtag->getFeed();
// Output items
var_dump($feed->getRankedItems());
from instagram-api.
Damn, wish I could test this out, but the site I am working on runs off 5.6 and you're using 7.x only language features. I'll test this out again when we get around to upgrading.
from instagram-api.
No worries. Can we close this issue? :)
from instagram-api.
Your call.
from instagram-api.
Resolved.
from instagram-api.
Related Issues (20)
- Proxy type. HOT 1
- How can I get ThreadID from a user who is not in my DirectInbox? HOT 5
- Add and remove close friend. HOT 26
- The promise was rejected with reason: The path of a URI with an authority must start with a slash "/" or be empty HOT 1
- getProfilePictureUrl HOT 2
- Auth using access token HOT 4
- Get Contact Email of User/s HOT 6
- Media details from post id
- Followers Number HOT 2
- Remove item (single message) from thread HOT 3
- challenge_required
- Messanger HOT 1
- Parse error: syntax error ... HOT 1
- about getting proper output
- how get user media(post) count HOT 1
- function for change password ?
- Is there a function to get comments from a post?
- following list max 50 HOT 1
- 404 on Feed
- error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagram-api.