Comments (5)
Sure, it would be great and would certainly be useful to other users.
Your implementation looks good, just a few things about it:
- The authentication is handled by
call
thanks to theuse
method. - From the
results
, we actually only give back thedata
part, as you can see in other methods.
Maybe you could try to add only one method which would looks like this:
subscribe = function(type, callback_url, options, cb) {
and handle the options according to the required type.
It would be awesome if you could add the relevant documentation as well.
Anyway, please feel free to make a pull request, we'll review it carefully.
Thanks in advance for your contribution!
from instagram-node.
or maybe this would more closely fit the spirit of the API:
subscribe = function(type, object_id, callback_url, options, cb){
}
from instagram-node.
Actually the interface is different for geographies as you provide lat and lng but not an object id.
from instagram-node.
Ah, too true. I don't mind making one for each, and it seems a bit simpler. Do you think it's better to just have 1 interface function?
from instagram-node.
No you're right, since the parameters for the geography subscription are different, one for each will be ok.
from instagram-node.
Related Issues (20)
- 404 on subscriptions, and Missing client_secret on delete HOT 1
- instagram-node return from callback
- add_tag_subscription creates a 'user' subscription
- [SyntaxError: Unexpected end of input] while trying to get IG posts HOT 6
- image and caption upload HOT 1
- ig.user returns 404 error HOT 2
- totems.co
- OAuthAccessTokenException when trying to access user_search endpoint HOT 2
- Is add_tag_subscription still supported? HOT 3
- OAuthPermissionsException: This client has not been approved to access this resource. HOT 1
- user_followers or user_follows return empty array in result HOT 7
- Cannot find module 'async' HOT 1
- Add maintainers to project HOT 1
- How do I make it always force the user to enter their login credentials instead of assuming them?
- Cannot read property 'forEach' of undefined
- The access_token provided is invalid
- OAuthAccessTokenException: The access_token provided is invalid. HOT 5
- its not working yet?
- Change over From Instagram Brings new Error HOT 5
- OAuthAccessTokenException: The access_token provided is invalid HOT 5
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-node.