SimplePost

<< Fare clic per visualizzazione il sommario >>

Percorso:  I servizi di Jamio openwork > Rest Service >

SimplePost

Service

Rest

 

Method

SimplePost

 

Description

Invokes a REST service with the POST method.

 

Input

Name

Description

Type

Optional

baseUrl

The base url of the REST service (ex.: “https://api.twitter.com/1.1/”). (Required, unless specified in the “BaseUrl” configuration field).

String

 

resource

The resource (ex.: “statuses/show.json”). (Required, unless specified in the “Resource” configuration field).

String

 

data

A Key/Value pair collection of parameters (ex.: “id”, “210462857140252672”, “trim_user”, “true”).

Dataset

 

contentType

The media type of the request (ex.: “application/x-www-form-urlencoded”, “text/plain”;

see http://en.wikipedia.org/wiki/MIME_type). (Defaults to “application/x-www-form-urlencoded”)

String

 

Output

Name

Description

Type

Optional

returnValue

A string containing the service output.

String

 

 

Remarks

If only the complete url is available (not its baseUrl and resource parts), it can be passed in anyone of the two parameters (baseUrl or resource) leaving the other empty. The output string can be in various formats (Json, XML, CSV, HTML and others): if desired, the appropriate transformations can be requested with other methods (JsonToDictionary, XmlToDictionary and CsvToList).