Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support of new Email scope

  • Loading branch information...
commit ff05ca447265c5bf756edba4ce57db410aabd54b 1 parent dd54ff4
@shred authored
View
1  flattr4j-core/src/main/java/org/shredzone/flattr4j/oauth/FlattrAuthenticator.java
@@ -219,6 +219,7 @@ protected String buildScopeString() {
if (scope.contains(Scope.FLATTR)) sb.append(" flattr");
if (scope.contains(Scope.THING)) sb.append(" thing");
+ if (scope.contains(Scope.EMAIL)) sb.append(" email");
if (scope.contains(Scope.EXTENDEDREAD)) sb.append(" extendedread");
return sb.toString().trim();
View
7 flattr4j-core/src/main/java/org/shredzone/flattr4j/oauth/Scope.java
@@ -40,6 +40,13 @@
THING,
/**
+ * The consumer wants to read the user's email address.
+ *
+ * @since 2.2
+ */
+ EMAIL,
+
+ /**
* The application has read access, plus access to private user information and hidden
* things for the authenticated user.
*/
Please sign in to comment.
Something went wrong with that request. Please try again.