Difference between revisions of "Nats get member"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY (talk | contribs) m |
|||
Line 92: | Line 92: | ||
To make an array reference, create the array using the | To make an array reference, create the array using the | ||
[[nats_add_to_array]] function. | [[nats_add_to_array]] function. | ||
+ | |||
+ | [[Category:NATS4 Template Functions]] |
Revision as of 16:41, 20 May 2011
Applies to NATS 4.0.62 and greater.
nats_get_member
Prints the member data selected by the input information.
Alias: get_affiliates
Parameters
(Required parameters in bold)
Parameter | Description | Possible Values | Default Value | Example |
---|---|---|---|---|
memberid | Specify the member id of the member you want to retrieve information on | 1 | 0 | memberid=1 |
memberidx | Specify the memberidx of the member you want information for | RSBNATIVE:12345 | 0 | memberidx="RSBNATIVE:12345" |
username | Specify the username of the member you're looking for. This parameter also requires siteid and email to be set | DemoUser | 0 | username="DemoUser" |
siteid | Specify the siteid of the member you're looking for. This parameter also requires username and email to be set | 1 | 0 | siteid=1 |
Specify the e-mail address of the member you're looking for. This parameter also requires the username and siteid | change@toomuchmedia.com | 0 | email=change@toomuchmedia.com | |
transaction_id | Specify the transaction id of the member you are looking for. | 12345 | 0 | transaction_id=12345 |
status | Specify the status of the member you're looking for | 1 | 0 | status=1 |
token_hash | Specify the token hash of the member you're looking for. | 13asd12 | 0 | token_hash="13asd12" |
full_info | Specify if you want to retrieve all the information for the member | 1 | 0 | full_info=1 |
assign_prefix | Prefix output variables with this word. (Click link for details) | Any valid Smarty variable name | None. (No prefix is used) | assign_prefix="myvar" |
Output
Returns an array called $get_member populated with the member data.
Examples
{nats_get_member transaction_id="12345"}
Notes
To make an array reference, create the array using the nats_add_to_array function.