Android Question Json get request header

Discussion in 'Android Questions' started by John Decowski, Jul 30, 2019.

  1. John Decowski

    John Decowski Member Licensed User

    Anyone have any idea how to add to the get request header when retrieving json? Vimeo API requires me to add my access token to my request header.

    Below is what they want in the header.


    Refer to Table 1 for the headers.

    Table 1. Headers for GET to /videos/{video_id}

    Header Set value to
    Authorization bearer {access_token}
    Accept application/vnd.vimeo.*+json;version=3.4
  2. DonManfred

    DonManfred Expert Licensed User

    dim job as httpjob
    ""&videoID) ' videoID hold the ID
    job.GetRequest.SetHeader("Authorization",$"bearer ${access_token}"$' Call it AFTER Download/Poststring/Postfile
    job.GetRequest.SetHeader("Accept",$"application/vnd.vimeo.*+json;version=3.4"$' Call it AFTER Download/Poststring/Postfile
    Something like this....
    John Decowski and Erel like this.
  3. John Decowski

    John Decowski Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice