Advertisement
Guest User

Untitled

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