array users.getConnections ( int vhost, mixed emailList = array(), array phoneList = array(), int userId = 0, mixed mediaId = 0 )
Name | Type | Required | Default value | Description |
---|---|---|---|---|
vhost | int | Required | none | The id of the vhost. |
emailList | mixed | Optional | array() | |
phoneList | array | Optional | array() | An array of phone numbers to lookup |
userId | int | Optional | 0 | User ID, if provided user list will state if users are already connected via isFollowed |
mediaId | mixed | Optional | 0 |
The possible key value pairs that you can use in your userData array.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
user | STRING | Optional | none | Username for the account. The user parameter must only contain letters (a-z or A-Z), digits (0-9), underscore (_), hyphen (-), period (.), and the "at" sign (@). |
STRING | Optional | none | Email address for the account holder. This has to be a properly formatted email address. | |
phone | STRING | Optional | none | The account holders phone number. |
countrycode | INTEGER | Optional | none | The account holders phone country code. |
firstname | STRING | Optional | none | Firstname for the account holder |
lastname | STRING | Optional | none | Lastname for the account holder |
password | STRING | Optional | random string | Password for the account holder (if none is provided the system will generate one and send it to the user) |
address1 | STRING | Optional | none | The account holders address. |
address2 | STRING | Optional | none | A second line for the account holders address. |
city | STRING | Optional | none | The account holders city. |
language | STRING | Optional | none | The language the account holder is using poss. |
state | STRING | Optional | none | The account holders state/province. |
country | STRING | Optional | none | The account holders country. |
postalcode | STRING | Optional | none | The account holders zip or postal code. |
birthdate | STRING | Optional | none | The account holders birth date. |
cellphone | STRING | Optional | none | The account holders cell phone. |
phone | STRING | Optional | none | The account holders phone number. |
website | STRING | Optional | none | The account holders website. |
accounttype | STRING | Optional | 0 | The account type for the account holder. |
occupation | STRING | Optional | none | The account holders occupation. |
newsletter | BOOLEAN | Optional | 0 | Whether the account holder wants to receive a newsletter. |
profile_complete | BOOLEAN | Optional | 0 | If a users profile should be marked as complete or not. |
gender | CHAR | Not required | none | The account holders gender, acceptable values are M or F. |
meta | STRING | Optional | none | Any meta data you wish to store about the account holder. |
external_id | STRING | Optional | none | The id provided by a 3rd party external authorization system. NB: This is to be used with 'external_id_provider'. |
external_id_provider | INTEGER | Optional | none | The integer that represents the 3rd party that provided the external id. Possible values are:
NOTE: The external_id_provider is required if external_id is passed. |
Below are the fields available in the returned array.
Name | Type | Description |
---|---|---|
id | INT | The user id for the requested users. |
user | STRING | The user name for the requested users. |
firstname | STRING | The first name for the requested users. |
lastname | STRING | The last name for the requested users. |
avatar | INT | The media items that the users may be using as their avatar. |
city | STRING | The city in which the requested users live. |
country | STRING | The country in which the requested users live. |
gender | CHAR | The gender of the requested users. M for male and F for female. |
birthdate | DATE | The date of birth for the requested users. |
language | STRING | The user's preferred language. A two character ISO country code will be used. |
STRING | The e-mail address of the requested users. | |
phone | STRING | The users phone number. |
cellphone | STRING | The user's cell phone number. |
state | STRING | The state in which the requested users live. |
lastlogin | DATETIME | The date and time that the user was last logged into the system. |
geo_latitude | FLOAT | The geographical latitude of the requested users. |
geo_longitude | FLOAT | The geographical longitude of the requested users. |
publicfiles | INT | The total number of media items the user has uploaded to the system. NOTE: You can find the value of notdeniedfiles by subtracting deniedfiles from publicfiles. |
unmoderatedfiles | INT | The number of media items that the user has uploaded to the system that are yet to be moderated. |
approvedfiles | INT | The number of media items the user has uploaded to the system that have been approved. |
deniedfiles | INT | The number of media items the user has uploaded to the system that have been denied. |
unmoderatedcomments | INT | The number of comments the user has posted that have yet to be moderated. |
approvedcomments | INT | The number of comments the user has posted that have been approved. NOTE: You can find the value of notdeniedcomments by calculating the sum of approvedcomments plus unmoderatedcomments. |
deniedcomments | INT | The number of comments the user has posted that have been denied. |
notdeniedcomments | INT | The number of comments the user has posted that have been approved or have yet to be mopderated. |
newsletter | BOOLEAN | Whether or not the user has requested the newsletter, 0 is false, 1 is true. |
deviceinfo | ARRAY | An array of the user's devices. The values returned are as follows: (with i being the iterator of the user's devices, should the user have more than one)
|
externalids | ARRAY | The user's external IDs, if any. |
created | DATETIME | The date and time that the user was created. |
profile_complete | INT | Is the user's profile complete. 1 - yes, 0 - no. |
disable_media_notifications | INT | Has the user disbled their media notifications: 1 - yes, 0 - no. |
disable_thread_notifications | INT | Has the user disbled their thread notifications: 1 - yes, 0 - no. |
occupation | STRING | The user's occupation. |
friends | INT | The number of user's accepted friends. |
followers | INT | The number of user's following the user. |
following | INT | The number of user's the user follows. |
vhost | INT | The application that the user is in. |
meta | ARRAY | The user's meta data. |
active | INT | Indicates whether or not a user account is active: 1 = active, 0 = inactive. |
disabled | INT | Indicates whether or not a user account is disabled: 1 = disabled, 0 = enabled. |
gravatarid | STRING | An md5 hash of the user's email address, which is used to confirm the user's gravatar. |