Difference between revisions of "NATS4 API Edit Option Text"
From TMM Wiki
Jump to navigationJump to search (Created page with "{{NATS4 Manual | show_api_admin_section = true }} The Edit Option Text API function is a feature in NATS4 that allows you to edit option text for your NATS join options u...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | This example continues from the [[NATS4_API#Example|main article NuSOAP Example]]: | ||
+ | |||
=== Request === | === Request === | ||
− | The following | + | The following is an example request you can make with this API function using the following parameters: |
− | optionid, text | + | *optionid, text |
<pre> | <pre> | ||
$data = Array( | $data = Array( | ||
− | 'optionid' => 1, | + | 'optionid' => 1, |
− | 'text' => 'Great Join Option', | + | 'text' => 'Great Join Option', |
− | ) | + | ); |
$result = $client->call('edit_option_text', $data, 'natsapiadmin_wsdl'); | $result = $client->call('edit_option_text', $data, 'natsapiadmin_wsdl'); |
Latest revision as of 11:02, 26 December 2013
The Edit Option Text API function is a feature in NATS4 that allows you to edit option text for your NATS join options using an API call.
Filters
This function will allow you to edit option text by optionid. These are parameters used to specify which option rule you're adding:
- optionid - (required)
- text- (required)
Examples
This example continues from the main article NuSOAP Example:
Request
The following is an example request you can make with this API function using the following parameters:
- optionid, text
$data = Array( 'optionid' => 1, 'text' => 'Great Join Option', ); $result = $client->call('edit_option_text', $data, 'natsapiadmin_wsdl');
Response
Array ( [0] => TRUE )