prowdsponsor / ig

Bindings to Instagram's API
Other
11 stars 14 forks source link

Add support for new scopes #23

Closed danstn closed 8 years ago

danstn commented 8 years ago

Addresses #22

:package:

Stack repl:

>> let l = [Basic, Relationships, FollowerList, PublicContent, Comments, Likes]
>> [("scope",BS.intercalate "+" $ map (TE.encodeUtf8 . pack . show) l)]
[("scope","basic+relationships+follower_list+public_content+comments+likes")]

According to the API Docs | Authorization:

  • basic - to read a user’s profile info and media (granted by default)
  • public_content - to read any public profile info and media on a user’s behalf
  • follower_list - to read the list of followers and followed-by users
  • comments - to post and delete comments on a user’s behalf
  • relationships - to follow and unfollow accounts on a user’s behalf
  • likes - to like and unlike media on a user’s behalf
danstn commented 8 years ago

Any feedback on this one, @meteficha?

cdepillabout commented 8 years ago

This looks good to me.

cdepillabout commented 8 years ago

@meteficha I merged this pull request, bumped to version 0.7, and made a release on Hackage.

https://hackage.haskell.org/package/ig-0.7

If there are any problems with this, we can fix it and make a new release.

danstn commented 8 years ago

:+1: