Live data from Hacker News

Facebook quietly deprecated their Python/Ruby libraries for Instagram API

github.com

11–20 of 30 posts

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#11
post #6

Earlier quoted context omitted.

And the API end points are well-documented so it's not a big deal.

I wanted to do something with the Instagram API few weeks ago and it kinda surprised me how restrictive it is. You cannot do nearly anything without authentication and everything else is restricted by the TOS.

I'm not happy about the restrictiveness either. (Especially the new Sandbox rate limitations)

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#12
post #8

Because they are shallow layers over their REST API? There's nothing useful in there anyway.

I'm surprised this hasn't been trivialized/automated away yet (or has it?) Some sort of language-neutral REST-protocol description language, that could be used to code-generate client libraries and also generate a test spec and documentation. Or maybe just a standard for media-types in HATEOS response types in specifying REST API "roots", to make them machine-discoverable, in a way where the result could be "cached i…

So messing around with Python and rest APIs... Often a wrapper library for an API exists on github.. But why use it? If I use 6 APIs in my project I now just added 6 libraries that all do things like auth, connection pooling, error handling a little bit different. Meh. The actual work of code to json to API to json to code is simple (1 line usually), I would rather just learn the API and do it myself. You still need to learn the API to use the wrapper library...

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#13
post #8

Because they are shallow layers over their REST API? There's nothing useful in there anyway.

I'm surprised this hasn't been trivialized/automated away yet (or has it?) Some sort of language-neutral REST-protocol description language, that could be used to code-generate client libraries and also generate a test spec and documentation. Or maybe just a standard for media-types in HATEOS response types in specifying REST API "roots", to make them machine-discoverable, in a way where the result could be "cached i…

I believe this is what AWS does to create all their libraries in the bazillion languages they support.

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#14

Because they are shallow layers over their REST API? There's nothing useful in there anyway.

So what is consensus on client libraries like this? Personally, I'd rather just use my own calls. Aren't most RESTful APIs simple enough not to need such libraries? And if they're not, it's a design failure?

But then you have companies like Braintree that only supports its libraries?

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#15
post #8

Because they are shallow layers over their REST API? There's nothing useful in there anyway.

I'm surprised this hasn't been trivialized/automated away yet (or has it?) Some sort of language-neutral REST-protocol description language, that could be used to code-generate client libraries and also generate a test spec and documentation. Or maybe just a standard for media-types in HATEOS response types in specifying REST API "roots", to make them machine-discoverable, in a way where the result could be "cached i…

I could maybe see something like http://unirest.io or, to a lesser extent, http://swagger.io making sense.

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#16
post #8

Because they are shallow layers over their REST API? There's nothing useful in there anyway.

I'm surprised this hasn't been trivialized/automated away yet (or has it?) Some sort of language-neutral REST-protocol description language, that could be used to code-generate client libraries and also generate a test spec and documentation. Or maybe just a standard for media-types in HATEOS response types in specifying REST API "roots", to make them machine-discoverable, in a way where the result could be "cached i…

Sounds suspiciously like SOAP to me.

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#17
Instagram is by far one of the easier APIs to use (among the social media services)...I've never used a client library for it, in Python nor Ruby.

In Ruby, the best API wrappers (or at least, the ones I used back in the day) for Twitter and Facebook are maintained independently:

https://github.com/sferik/twitter

https://github.com/arsduo/koala

The koala gem for Facebook is a godsend...the FB API and models are not trivial...and that's before trying to keep up with the many and frequent changes to the API spec. It's hard to imagine that FB would put the resources into continually maintaining that gem if it were an official gem...not when (I assume) so many more of their API consumers use iOS/JS/Android.

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#18
post #8

Because they are shallow layers over their REST API? There's nothing useful in there anyway.

I'm surprised this hasn't been trivialized/automated away yet (or has it?) Some sort of language-neutral REST-protocol description language, that could be used to code-generate client libraries and also generate a test spec and documentation. Or maybe just a standard for media-types in HATEOS response types in specifying REST API "roots", to make them machine-discoverable, in a way where the result could be "cached i…

This is a shameless plug, so I'll take my beating if it's appropriate. For the last few months, I've been working on a Python library, beekeeper, that's all about that. It essentially consumes a JSON description file that gives all the specs for an API, as well as information about its object structure, and then provides an intuitive, native-Python interface, typically with little to no additional code required.

You can check it out on GitHub at https://github.com/haikuginger/beekeeper, read more at http://beekeeper.rtfd.org, or just install it with pip.

I'm biased, but I think it's pretty cool.

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#19
post #10
post #8

Earlier quoted context omitted.

I'm surprised this hasn't been trivialized/automated away yet (or has it?) Some sort of language-neutral REST-protocol description language, that could be used to code-generate client libraries and also generate a test spec and documentation. Or maybe just a standard for media-types in HATEOS response types in specifying REST API "roots", to make them machine-discoverable, in a way where the result could be "cached i…

I believe the current most popular flavor is Swagger ( http://swagger.io ) at the moment.

Despite having such quirks as: no Null support =|

Re: Facebook quietly deprecated their Python/Ruby libraries for Instagram API

#20
post #19
post #10

Earlier quoted context omitted.

I believe the current most popular flavor is Swagger ( http://swagger.io ) at the moment.

Despite having such quirks as: no Null support =|

IME, especially building APIs for mobile apps: nulls suck anyway!
Post reply on HN