javascript - I need to make a PUT request to a JSON file in an external API. I need to update specific fields -


i have json on external api, and, in documentation of api, instructs use put request update records. have read lot on this, haven't found adequate amount of information.

i best provide info can can me, specifically.

i have url stored in variable: $record.

the documentation instructs to: set request body content json formatted array of record data. “payload”.

it provides example:

{  “name”: “craig j. peters”,  “job title”: “director of engineering”  } 

i need change specific fields. how can accomplish using curl , php?

i should mention: if easier javascript, open well.

i recommend check guzzle starting point -

http://docs.guzzlephp.org/en/latest/request-options.html#body


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -