Commit 61fdde6f9aa00e1ead9d37faa76d32401c36092d

Authored by Luis Pedro
1 parent 6c45df2dc6
Exists in master and in 1 other branch API_v3.0

C5087

src/main/java/org/um/dsi/gavea/orcid/client/OrcidOAuthClient.java
@@ -116,7 +116,7 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient { @@ -116,7 +116,7 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient {
116 * @return 116 * @return
117 * @throws Exception 117 * @throws Exception
118 */ 118 */
119 - private String getAuthorizeUri(final List<ScopePathType> scopes, final String state, final String orcidId, final String familyNames, String givenNames, final String email, final String lang, final boolean login) throws Exception { 119 + private String getAuthorizeUri(final List<ScopePathType> scopes, final String state, final String orcidId, final String familyNames, final String givenNames, final String email, final String lang, final boolean login) throws Exception {
120 120
121 if (scopes == null) 121 if (scopes == null)
122 throw new Exception("Cannot create Authorize Uri - missing scopes"); 122 throw new Exception("Cannot create Authorize Uri - missing scopes");
@@ -203,7 +203,7 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient { @@ -203,7 +203,7 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient {
203 public Fundings readFundingsSummary(final OrcidAccessToken token) throws OrcidClientException { 203 public Fundings readFundingsSummary(final OrcidAccessToken token) throws OrcidClientException {
204 Response response = null; 204 Response response = null;
205 try { 205 try {
206 - response = get(OrcidConstants.ENDPOINT_FUNDING, token, null); 206 + response = get(OrcidConstants.ENDPOINT_FUNDINGS, token, null);
207 207
208 return response.readEntity(Fundings.class); 208 return response.readEntity(Fundings.class);
209 } finally { 209 } finally {
@@ -895,4 +895,4 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient { @@ -895,4 +895,4 @@ public class OrcidOAuthClient extends BaseOrcidOAuthClient {
895 private boolean isValidOrcidId(final String value) { 895 private boolean isValidOrcidId(final String value) {
896 return value.matches("([0-9]{4})-([0-9]{4})-([0-9]{4})-([0-9]{3})(?:[0-9X]{1})"); 896 return value.matches("([0-9]{4})-([0-9]{4})-([0-9]{4})-([0-9]{3})(?:[0-9X]{1})");
897 } 897 }
898 -} 898 +}
899 \ No newline at end of file 899 \ No newline at end of file