Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 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. locationId,
  10. content
  11. }
  12. }
  13. console.log('called uploadDocument')
  14. return this.callEurekaService(SERVICE_ID, options, errorMessage)
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement