Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9cb2af37c7 | ||
|
|
ed0970c8cb | ||
|
|
58991e81ef | ||
|
|
db27be9e2b | ||
|
|
874e959e09 | ||
|
|
545867ca1d |
No files matched your search
@@ -48,6 +48,16 @@ Good test coverage to keep you safe from harm.
|
||||
|
||||
When something bad actually happens, Scribe's meaningful error messages will tell you exactly what went wrong, when and where.
|
||||
|
||||
h3. Pull it from Maven! (new)
|
||||
|
||||
You can pull scribe from a maven repository, just add this to your __pom.xml__ file:
|
||||
|
||||
@<dependency>@
|
||||
@<groupId>org.scribe</groupId>@
|
||||
@<artifactId>scribe</artifactId>@
|
||||
@<version>1.0.6</version>@
|
||||
@</dependency>@
|
||||
|
||||
h1. Getting started in less than 2 minutes
|
||||
|
||||
Check the "Getting Started":http://wiki.github.com/fernandezpablo85/scribe-java/getting-started page and start rocking!
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[1.0.6]
|
||||
|
||||
* FEATURE: Available in maven central repositories.
|
||||
|
||||
[1.0.7]
|
||||
|
||||
* FEATURE: Added support for Yammer and Evernote ( thanks oparrsih )
|
||||
* FIX: Fixed bug that preventing setting the scope param on Google Api
|
||||
@@ -4,7 +4,7 @@
|
||||
<groupId>org.scribe</groupId>
|
||||
<artifactId>scribe</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>1.0.6</version>
|
||||
<version>1.0.7</version>
|
||||
<name>Scribe OAuth Library</name>
|
||||
<description>The best OAuth library out there</description>
|
||||
<url>http://github.com/fernandezpablo85/scribe-java</url>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.scribe.builder.api;
|
||||
|
||||
public class EvernoteApi extends DefaultApi10a
|
||||
{
|
||||
|
||||
@Override
|
||||
public String getRequestTokenEndpoint()
|
||||
{
|
||||
return "https://www.evernote.com/oauth";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAccessTokenEndpoint()
|
||||
{
|
||||
return "https://www.evernote.com/oauth";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.scribe.builder.api;
|
||||
|
||||
public class YammerApi extends DefaultApi10a
|
||||
{
|
||||
|
||||
@Override
|
||||
public String getRequestTokenEndpoint()
|
||||
{
|
||||
return "https://www.yammer.com/oauth/request_token";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAccessTokenEndpoint()
|
||||
{
|
||||
return "https://www.yammer.com/oauth/access_token";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -41,12 +41,13 @@ public class OAuthRequest extends Request
|
||||
|
||||
private String checkKey(String key)
|
||||
{
|
||||
if (!key.startsWith(OAUTH_PREFIX) || key.equals(OAuthConstants.SCOPE))
|
||||
{
|
||||
throw new IllegalArgumentException(String.format("OAuth parameters must either be %s or start with '%s'", OAuthConstants.SCOPE, OAUTH_PREFIX));
|
||||
} else
|
||||
if (key.startsWith(OAUTH_PREFIX) || key.equals(OAuthConstants.SCOPE))
|
||||
{
|
||||
return key;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new IllegalArgumentException(String.format("OAuth parameters must either be '%s' or start with '%s'", OAuthConstants.SCOPE, OAUTH_PREFIX));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user