Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. uploadDocument(accessToken, documentType, content, locationId) {
  2. const url = `upload/document/${documentType}`
  3. const errorMessage = `Error while uploading document ${documentType} for content ${content}`
  4. const options = {
  5. url,
  6. method: 'post',
  7. auth: { bearer: accessToken },
  8. json: {
  9. content: content,
  10. locationId: locationId,
  11. }
  12. }
  13. return this.callEurekaService(SERVICE_ID, options, errorMessage)
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement