Answers.Body: <p>Yes, you do not need the params to be formatted as json, since they are all simple strings/numbers you can just place them in the url like <code>subject=test&amp;target_id=1529697</code> etc.</p>
  
  <p>If you want your results back in json format, add <code>&amp;json=1</code> otherwise leave it off to get xml back.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T19:46:04.780Z
Answers.Text: Thanks Coleman, eventually got there.
  
  Notes for any future googlers looking for "http connect" in Survey Gizmo and CiviCRM. I'll write a blog post at some point.
  
  Don't put the key=value that you're taking from the question in the URL field, remove completely and put in "fields to pass".
  
  Don't use the JSON section provided by the API explorer. Switch it all to &key=value (unless you're using an array? in which case good luck)
  
  Enjoy advanced surveys.
Answers.UserDisplayName: Owen B
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-26T18:04:38.343Z
Answers.LastActivityDate: 2015-08-26T18:04:38.343Z
Answers.UserDisplayName: Coleman
Body: <p>Is it possible to structure</p>
  
  <pre><code>/sites/all/modules/civicrm/extern/rest.php?entity=Activity&amp;action=create&amp;json={"sequential":1,"activity_date_time":"2015-09-01","id":2,"subject":"test","target_id":"1529697","status_id":2}&amp;api_key=X&amp;key=Y
  </code></pre>
  
  <p>without the JSON section? I'm integrating with Survey Gizmo and it assumes all REST calls will be in format ?variable=value&amp;variable=value etc..</p>
  
Tags: <api>
Title: REST API without JSON just key=value
ThreadText: # REST API without JSON just key=value
  
  (Asked by: username_0 on 2015-08-26)
  
  Is it possible to structure
  
  ```
  /sites/all/modules/civicrm/extern/rest.php?entity=Activity&action=create&json={"sequential":1,"activity_date_time":"2015-09-01","id":2,"subject":"test","target_id":"1529697","status_id":2}&api_key=X&key=Y
  
  ```
  
  without the JSON section? I'm integrating with Survey Gizmo and it assumes all REST calls will be in format ?variable=value&variable=value etc..
  
  **Tags:** api
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-26. Score: 6
  
  Yes, you do not need the params to be formatted as json, since they are all simple strings/numbers you can just place them in the url like `subject=test&target_id=1529697` etc.
  
  If you want your results back in json format, add `&json=1` otherwise leave it off to get xml back.
  
  > **Comments:**
  > **username_0**: Thanks username_1, eventually got there.  Notes for any future googlers looking for "http connect" in Survey Gizmo and CiviCRM. I'll write a blog post at some point.  Don't put the key=value that you're taking from the question in the URL field, remove completely and put in "fields to pass".  Don't use the JSON section provided by the API explorer. Switch it all to &key=value (unless you're using an array? in which case good luck)  Enjoy advanced surveys.  
  
  ---
  
  