Simple project to random select a winner from comments of a Instagram giveway, promotion or contest using technologies learned at XXI SIECOMP
Instagram RESTful API using express
$ PORT=3000 npm run server
-
/users/:username User basic information
- username
:string - (Required) The username of a user to get information about
{ "data": { "bio": "", "counts": { "followed_by": 0, "follows": 0, "media": 0 }, "full_name": "", "profile_picture": "", "username": "", "website": "" "isPrivate": false } }
- username
-
/users/search?q= Search for a user by name
- q
:string - (Required) A query String
- count
:integer - Number of users to return
{ "data": [ { "full_name": "", "profile_picture": "", "username": "" } ] }
- q
-
/users/:username/media/recent Get Recent media from a user
- username
:string - (Required) The username of a user to get recent feed
{ "data": [ { "link": "", "picture": "", "id": "", "picture_alt": "" } ] }
- username
-
/media/:mediaId Media basic Information
- mediaId
:string - (Required) The id of a media to get information about
{ "data": { "caption": { "from": { "username: "" }, "text": "" }, "comments": { "count": 0, "data": [ { "from": { "username": "" }, "text": "" } ] }, "created_time": "", "id": "", "images": [ { "url": "", "height": 0, "width": 0 } ], "likes": 0, "link": "", "location": { "name": "" }, "type": "image || video", "users_in_photo": [ { "username" : "" } ], "videos": [ { "src": "", "thumbnail: "" } ] }, }
- mediaId