package fr.oni.gaagaa.api;

import java.util.List;

import fr.oni.gaagaa.model.twitter.Authenticated;
import fr.oni.gaagaa.model.twitter.Tweet;
import fr.oni.gaagaa.model.twitter.TwitterUser;
import retrofit.http.Body;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import retrofit.http.Header;
import retrofit.http.Headers;
import retrofit.http.POST;
import retrofit.http.Query;

public interface TwitterApi {

    @FormUrlEncoded
    @POST("/oauth2/token")
    Authenticated authorizeUser(@Header("Authorization") String authorization,
                                @Field("grant_type") String grantType);

    @Headers({
            "Content-Type: application/json"
    })
    @GET("/1.1/lists/statuses.json")
    List<Tweet> getTwitterStream(@Query("slug") String slug,
                                 @Query("owner_screen_name") String screenName);

    @GET("/1.1/account/verify_credentials.json")
    TwitterUser verifyCredentials(@Header("Authorization") String authorization);

    @POST("/1.1/statuses/update.json")
    Tweet sendUpdate(@Header("Authorization") String authorization, @Body String status);

    @GET("/statuses/user_timeline.json")
    List<Tweet> getUserTimeline(@Query("screen_name") String screenName, @Query("count") int count);
}

@@ -453,274 +453,8 @@
  %7B%0A%0A
-    @FormUrlEncoded%0A    @POST(%22/oauth2/token%22)%0A    Authenticated authorizeUser(@Header(%22Authorization%22) String authorization,%0A                                @Field(%22grant_type%22) String grantType);%0A%0A    @Headers(%7B%0A            %22Content-Type: application/json%22%0A    %7D)%0A
     
@@ -460,20 +460,16 @@
  @GET(%22/
-1.1/
 lists/st
@@ -636,20 +636,16 @@
  @GET(%22/
-1.1/
 account/
@@ -749,24 +749,24 @@
 rization);%0A%0A
+
     @POST(%22/
@@ -769,12 +769,8 @@
 T(%22/
-1.1/
 stat

Change paths for twitter API