Answers.Body: <p>You might want to check the CiviMobile Extension:</p>
  
  <p><a href="https://civicrm.org/extensions/civimobile" rel="nofollow">https://civicrm.org/extensions/civimobile</a></p>
  
  <p>and see how things are done in that app. Might help give you a better direction for the app.</p>
  
  <p>In general, you might want to first design / develop what you want to do with CiviCRM first before deciding how to do it in an app. Your use case seems to be an instance of CiviCRM profiles.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-27T14:41:01.267Z
Answers.LastActivityDate: 2015-04-27T14:41:01.267Z
Answers.UserDisplayName: Donald Lobo
Answers.Body: <p>Visit the API Explorer (<strong>Help menu > Developer > API Explorer</strong>) on your CiviCRM installation.  You can use it to generate both the set of variables you can use, and view the REST API URL specific to your installation.</p>
  
  <p>If your form submits fields that are part of different entities (an entity generally maps to a SQL table), start with getting it to work with a single entity.  Once you've got that handled, you can do <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Chaining" rel="nofollow">API chaining</a> to avoid multiple REST calls.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-27T14:54:37.813Z
Answers.LastActivityDate: 2015-04-27T14:54:37.813Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'm programming an Android App for a company, and they use CiviCRM for subscribing to newsletters. The form is available to anyone online, but I have to add the form in an android app. On the android app, i use a button "Send", who should send the form as the online form. Then the form is recorded in a database using CiviCRM. In order to do that, I need to create a JSON object, and send the request using Ajax. But I have no idea of what should be the url of the ajax request, and what should be the variables I should use.</p>
  
  <p>The form is composed of three parts: a select, four text inputs and two checkbox sets.</p>
  
Tags: <api><email><contacts><ajax>
Title: How to use a CiviCRM generated form in an Android App
ThreadText: # How to use a CiviCRM generated form in an Android App
  
  (Asked by: username_0 on 2015-04-27)
  
  I'm programming an Android App for a company, and they use CiviCRM for subscribing to newsletters. The form is available to anyone online, but I have to add the form in an android app. On the android app, i use a button "Send", who should send the form as the online form. Then the form is recorded in a database using CiviCRM. In order to do that, I need to create a JSON object, and send the request using Ajax. But I have no idea of what should be the url of the ajax request, and what should be the variables I should use.
  
  The form is composed of three parts: a select, four text inputs and two checkbox sets.
  
  **Tags:** api, email, contacts, ajax
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-04-27. Score: 1
  
  You might want to check the CiviMobile Extension:
  
  <https://civicrm.org/extensions/civimobile>
  
  and see how things are done in that app. Might help give you a better direction for the app.
  
  In general, you might want to first design / develop what you want to do with CiviCRM first before deciding how to do it in an app. Your use case seems to be an instance of CiviCRM profiles.
  
  
  ---
  
  ### Answer by username_2 on 2015-04-27. Score: 1
  
  Visit the API Explorer (**Help menu > Developer > API Explorer**) on your CiviCRM installation. You can use it to generate both the set of variables you can use, and view the REST API URL specific to your installation.
  
  If your form submits fields that are part of different entities (an entity generally maps to a SQL table), start with getting it to work with a single entity. Once you've got that handled, you can do [API chaining](http://wiki.civicrm.org/confluence/display/CRMDOC/Chaining) to avoid multiple REST calls.
  
  
  ---
  
  