AppMachine Help Center

How can we help you?

Follow

Post Data using a Web Service

This guide will help you integrating your own web service into your AppMachine app using our "Web service" building block.

Please make sure you have read the general web service article before getting started.

The goal of this guide is to help you integrate your web service that will post data to your website using an API. If you are looking for guides regarding creating, updating or deleting data via a web service please check out the related articles section.

Prerequisites

  • You will need the POST URL of the web service you want to integrate in your app.

How to

If you are running into any issues please check the frequently asked questions about web services.

  1. Go to https://design.appmachine.com and open your app;
  2. Go to the "content" section of your app;
    2content.png
  3. Click Add block.
    3addblovk.png
  4. Select the Pro tab.
    4Pro.png
  5. Select the Web service block and click Add block.
    5Webservice.png
  6. Select Custom web service.
    6Custom.png

  7. Set the web service method to POST
    Webservice_POST_01_07072014.png
  8. Enter the URL of your POST Web Service url (e.g. https://www.example.com?username=xxx&password=xxx&passwordconfirm=xxx
  9. We will automatically move all query string parameters to the "Parameters section". You can always add additional parameters to the Web Service.
    Tip: According to the "Type" specified with each parameter we will validate the user input.
    Webservice_POST_02_07072014.png
  10. Clear the default values and select the "Required" button.
    Webservice_POST_03_07072014.png
  11. Click "Next"
  12. Name your new block, so just pick a name and click "Finish"

The Screen block consists of textfields which can be used to enter the data. After hitting the submit button the data will be sent to the website API.

To edit your fields please look at : http://support.appmachine.com/entries/43989053-AppMachine-Layout-Template

Was this article helpful?
0 out of 1 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Fernando Sérgio

    Such a poor documentation... We cannot live forever only passing static strings.... how do I pass a javascript variable as a queryString?