1. Download our Official Android App: Forums for Android!

InstagramApi - Retrofit

Discussion in 'Android Development' started by umtblbl, Sep 23, 2019.

  1. umtblbl

    umtblbl Newbie
    Thread Starter
    Rank:
     #590
    Points:
    16
    Posts:
    49
    Joined:
    Mar 6, 2019

    Mar 6, 2019
    49
    5
    16
    Hi friends, I want to develop an application using the following api. When I test api on chrome, json data is returned if any instagram account is logged in. I know how to use retrofit. But there is no access_token section in the url. How do I get the user to login when using these URLs with retrofit? Please help me.

    // Returns user information if logged in
    https://i.instagram.com/api/v1/users/26352342/info/
    // Returns users followed by the user if logged in
    https://www.instagram.com/graphql/query/?query_id=17874545323001329&id=26352342&first=20
     

    Advertisement

  2. wseng92

    wseng92 Android Enthusiast
    Rank:
     #163
    Points:
    73
    Posts:
    250
    Joined:
    Oct 26, 2015

    Oct 26, 2015
    250
    47
    73
    Male
    Where you get this api?
     
  3. umtblbl

    umtblbl Newbie
    Thread Starter
    Rank:
     #590
    Points:
    16
    Posts:
    49
    Joined:
    Mar 6, 2019

    Mar 6, 2019
    49
    5
    16
    Github projects
     
  4. wseng92

    wseng92 Android Enthusiast
    Rank:
     #163
    Points:
    73
    Posts:
    250
    Joined:
    Oct 26, 2015

    Oct 26, 2015
    250
    47
    73
    Male
    What is pk? Seem like a unique key for me.
     
  5. umtblbl

    umtblbl Newbie
    Thread Starter
    Rank:
     #590
    Points:
    16
    Posts:
    49
    Joined:
    Mar 6, 2019

    Mar 6, 2019
    49
    5
    16
    I do not understand
     

Share This Page

Loading...