Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

retrofit with api key post

//In interface
Call<User> createPost(@Body User user,@Query("key") String key);

//In call 
RetrofitUserApi retrofitAPI = retrofit.create(RetrofitUserApi.class);
Call<User> call = retrofitAPI.createPost(farmUser,"YOURAPIKEY");
 
PREVIOUS NEXT
Tagged: #retrofit #api #key #post
ADD COMMENT
Topic
Name
3+1 =