package org.scribe.builder.api;

import org.scribe.model.Token;

public class TumblrApi extends DefaultApi10a
{
  private static final String AUTHORIZE_URL = "https://www.tumblr.com/oauth/authorize?oauth_token=%s";
  private static final String REQUEST_TOKEN_RESOURCE = "http://www.tumblr.com/oauth/request_token";
  private static final String ACCESS_TOKEN_RESOURCE = "http://www.tumblr.com/oauth/access_token";

  @Override
  public String getAccessTokenEndpoint()
  {
    return ACCESS_TOKEN_RESOURCE;
  }

  @Override
  public String getRequestTokenEndpoint()
  {
    return REQUEST_TOKEN_RESOURCE;
  }

  @Override
  public String getAuthorizationUrl(Token requestToken)
  {
    return String.format(AUTHORIZE_URL, requestToken.getToken());
  }
}

@@ -26,16 +26,61 @@
 r.api;%0A%0A
+import org.scribe.builder.api.DefaultApi10a;%0A
 import o
@@ -103,16 +103,17 @@
 Token;%0A%0A
+%0A
 public c
@@ -152,13 +152,12 @@
 i10a
-%0A
 %7B%0A
-  
+%0A%09
 priv
@@ -184,25 +184,29 @@
 ing AUTHORIZ
-E
+ATION
 _URL = %22http
@@ -205,17 +205,16 @@
  = %22http
-s
 ://www.t
@@ -260,161 +260,69 @@
 s%22;%0A
-  private static final String REQUEST_TOKEN_RESOURCE = %22http://www.tumblr.com/oauth/request_token%22;%0A  private static final String ACCESS_TOKEN_RESOURCE =
+%09%0A%09@Override%0A%09public String getAccessTokenEndpoint()%7B%0A%09return
  %22ht
@@ -362,19 +362,21 @@
 token%22;%0A
-%0A  
+%09%7D%0A%0A%09
 @Overrid
@@ -369,34 +369,33 @@
 %0A%09%7D%0A%0A%09@Override%0A
-  
+%09
 public String ge
@@ -387,38 +387,39 @@
 ublic String get
-Access
+Request
 TokenEndpoint()%0A
@@ -421,152 +421,69 @@
 nt()
-%0A  %7B%0A    return ACCESS_TOKEN_RESOURCE;%0A  %7D%0A%0A  @Override%0A  public String getR
+%7B%0A%09return %22http://www.tumblr.com/oauth/r
 equest
-T
+_t
 oken
-Endpoint()%0A  %7B%0A    return REQUEST_TOKEN_RESOURCE;%0A  %7D%0A%0A  
+%22;%0A%09%7D%0A%09%0A%09
 @Ove
@@ -488,18 +488,17 @@
 verride%0A
-  
+%09
 public S
@@ -546,17 +546,11 @@
 ken)
-%0A  %7B%0A    
+%7B%0A%09
 retu
@@ -574,17 +574,21 @@
 AUTHORIZ
-E
+ATION
 _URL, re
@@ -615,10 +615,10 @@
 ));%0A
-  %7D
+%09%7D%0A
 %0A%7D%0A

add tumblrApi