0

I have a curl command which i want to execute from the serverside of meteor and then retrieve the result.

 curl -k htts://<username>:<usertoken>@<url>/api/json?pretty=true

Is it possible to do this? are there any way we can achieve this?

Snkini
  • 571
  • 1
  • 5
  • 16
  • May this helps you : https://stackoverflow.com/questions/29117689/how-to-make-a-curl-call-to-dropbox-api-using-meteor-js – Ravi Sachaniya Jan 31 '18 at 05:43
  • Where did you get stuck? – marekful Jan 31 '18 at 05:43
  • in this `headers: { Authorization: "Bearer " }' bearer should be replaced with username? – Snkini Jan 31 '18 at 05:47
  • I have a jenkin url which has authentication, using the username and token in curl command i got the jenkins details in json format in terminal. But i want the same to be done in meteor serverside and retrieve the data for further operations. – Snkini Jan 31 '18 at 05:50
  • if you just want to make http request, the HTTP package is sufficient. Rather if you want to invoke shell commands, read this. https://eureka.ykyuen.info/2015/02/26/meteor-run-shell-command-at-server-side/ – christopher_pk Feb 02 '18 at 16:54

0 Answers0