1 package com.moiseum.wolnelektury.connection.services;
3 import com.moiseum.wolnelektury.connection.models.OAuthTokenModel;
4 import com.moiseum.wolnelektury.connection.models.UserModel;
7 import retrofit2.http.GET;
8 import retrofit2.http.Headers;
11 * Created by Piotr Ostrowski on 06.06.2018.
13 public interface UserService {
15 @Headers("Token-Requested: true")
16 @GET("oauth/request_token/")
17 Call<OAuthTokenModel> requestToken();
19 @Headers("Token-Requested: true")
20 @GET("oauth/access_token/")
21 Call<OAuthTokenModel> accessToken();
23 @Headers("Authentication-Required: true")
25 Call<UserModel> getUser();