package org.scribe.builder.api;

import org.scribe.model.*;

/**
 * @author Arieh "Vainolo" Bibliowicz
 * @see http://apidocs.mendeley.com/home/authentication
 */
public class MendeleyApi extends DefaultApi10a {

  private static final String AUTHORIZATION_URL = "http://api.mendeley.com/oauth/authorize?oauth_token=%s";

  @Override
  public String getRequestTokenEndpoint() {
    return "http://api.mendeley.com/oauth/request_token/";
  }

  @Override
  public String getAccessTokenEndpoint() {
    return "http://api.mendeley.com/oauth/access_token/";
  }

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

  @Override
  public Verb getAccessTokenVerb() {
    return Verb.GET;
  }

  @Override
  public Verb getRequestTokenVerb() {
    return Verb.GET;
  }
}

@@ -203,16 +203,17 @@
 tApi10a 
+%0A
 %7B%0A%0A  pri
@@ -362,32 +362,35 @@
 TokenEndpoint() 
+%0A  
 %7B%0A    return %22ht
@@ -491,16 +491,20 @@
 dpoint()
+  %0A 
  %7B%0A    r
@@ -629,16 +629,19 @@
 tToken) 
+%0A  
 %7B%0A    re
@@ -748,32 +748,35 @@
 cessTokenVerb() 
+%0A  
 %7B%0A    return Ver
@@ -835,16 +835,19 @@
 nVerb() 
+%0A  
 %7B%0A    re

Changed '{' to newlines