Skip to main content
Question

API question

  • November 19, 2015
  • 1 reply
  • 12 views

tmagdziasz
Forum|alt.badge.img+4

I have been able to successfully get data with PHP and the API however I am now trying to POST and am having some difficulty... Anyone have any idea of how to POST a command like this

curl -k -u user:pass https://jss.company.com/JSSResource/mobiledevicecommands/command/BlankPush/id/917 -X POST

in a php format? I know how to convert the -k and -u over to php curl but the -X Post is new. I want to be able initiate a blank push from another portal site.

Thanks in Advance

1 reply

tmagdziasz
Forum|alt.badge.img+4
  • Author
  • Contributor
  • November 20, 2015

I did get this figured out.. It was not my PHP it was an API user permission issue