Skip to content

Commit

Permalink
[CITE-87] fixed getting new access token; [CITE-79] ignore unknown (#11)
Browse files Browse the repository at this point in the history
properties in json
  • Loading branch information
jdamerow authored Feb 28, 2020
1 parent b349e78 commit 56c5d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ private ResponseEntity<?> makeApiCall(String url, String apiToken, Class<?> resp
}

// let's try again after getting a new OAuth token
entity = buildHeaders(apiToken);
response = restTemplate.exchange(url, HttpMethod.GET, entity, String.class);
}
return response;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package edu.asu.diging.citesphere.importer.core.service.impl;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

@JsonIgnoreProperties(ignoreUnknown=true)
public class JobInfo {

private String zotero;
Expand Down

0 comments on commit 56c5d51

Please sign in to comment.