Answer the question
In order to leave comments, you need to log in
Retrofit correctly how to log in header?
there is a site data.gov.spb.ru/developers
need to get a list of data from there
how to organize the correct authorization using retrofit?
the site says this: The
token is passed to the HTTP Header in the format “Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b”
What I got:
@GET("/api/v1/datasets")
@Headers("Authorization: Token e0fdb92b7fcbbf9241a9a8f22b592b3d83544ffa")
Call<List<PostModel>> getData(@Query("id")int count, @Query("name") String resourceName);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question