package me.ushio.api.client;

import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import junit.framework.TestCase;
import me.ushio.api.client.auth.oauth2.FeedlyTokenRequest;

import java.io.*;
import java.nio.charset.Charset;

/**
 * Created by shugo on 2014/02/08.
 */
public class FeedlyClientTest extends TestCase {
    public void testGetDomain() throws Exception {
        NetHttpTransport transport = new NetHttpTransport();
        JsonFactory jsonFactory = new JacksonFactory();
        String code = "";
        GenericUrl url = new GenericUrl("https://sandbox.feedly.com/v3/auth/token");

        FeedlyTokenRequest request = new FeedlyTokenRequest(
                transport,
                jsonFactory,
                url,
                code
        );
        request.setClientId("sandbox");
        request.setClientSecret("FUFNPXDNP2J0BF7RCEUZ");

        FeedlyClient client = new FeedlySandboxClient(request);
    }
}

@@ -999,28 +999,181 @@
 et(%22
-FUFNPXDNP2J0BF7RCEUZ
+CM786L1D4P3M9VYUPOB8%22);%0A        request.set(%22grant_type%22, %22authorization_code%22);%0A        request.set(%22state%22, %22token%22);%0A        request.set(%22redirect_uri%22, %22http://localhost
 %22);%0A

add params.