Detokenize

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Altri servizi > Rest >

Detokenize

Service

Rest

 

Method

Detokenize

 

Description

Returns the input string after having substituted the specified tokens with the corresponding values.

 

Input

Name

Description

Type

Optional

baseString

String containing tokens.

String

 

tokens

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

Dataset

 

Output

Name

Description

Type

Optional

returnValue

A detokenized string.

String

 

 

Remarks

This function can be used to manage uncommon REST resource invocations such as:

https://api.twitter.com/1.1/statuses/show/210462857140252672.json

where the Invoke function can be used with baseUrl = https://api.twitter.com/1.1/”,

resource = “statuses/show/” and parameters = “210462857140252672.json”;

the parameters string can be obtained detokenizing the baseString “{id}.json” with a token key = “{id}” and a token value = “210462857140252672”.