This method returns the new group id.
int groups.createGroup ( int vhost, string name, array additionalInfo = array() )
Name | Type | Required | Default value | Description |
---|---|---|---|---|
vhost | int | Required | none | The vhost ID that you want the group to be a member of. |
name | string | Required | none | The name you want the group to have. |
additionalInfo | array | Optional | array() | Any and all additional information that you want stored with the group. This is an ARRAY. |
additionalInfo is an array that consists of the information that you want to have stored in your group.
Name | Type | Required | Default | Possible Values | Description |
---|---|---|---|---|---|
string | no | email@example.com | The email address that users can use to email media into the group. | ||
description | string | no | string | A blurb of text that describes what the group is all about. The description is searchable. | |
logo | int | no | 0 | 5000444 | A media ID for a piece of media that is to be used as the group logo. The default value is 0, which means that the group has no logo assigned to it. |
url | string | no | http://example.com | The url for the group. | |
createdBy | int | no | 1 | 4155555 | The UID of the user who created the group. |
note | string | no | string | Some text about the group. The note is not searchable. | |
geo_longitude | float | no | 0 | -52.44 | The longitude of the group. This would be specified by the creator of the group. |
geo_latitude | float | no | 0 | 62.86 | The latitude of the group. This would be specified by the creator of the group. |
moderationStatus | string | no | unmoderated | unmoderated, accepted, denied, deleted, notdenied, moderated, all | The moderation status once the group has been created in MediaFactory. |
address | string | no | string | The address of the group. This is used if the group is a company, branch etc. This would be the office location. | |
city | string | no | Toronto | A city that the group is associated with. | |
country | string | no | CA, US | The 2-letter country code for the group location. | |
state | string | no | ON | The 2-letter state / province code for the group. | |
postalcode | string | no | M1M1M1 | A valid postal code to contact the group. | |
other | array | no | {'key': 'value'} | This is any additional information about the group that does not fit into the fields above. | |
custom1 | string | no | string | A searchable string for additional content that you want stored about the group. | |
startDate | timestamp | no | 0000-00-00 00:00:00 | 2012-02-15 00:00:00 | The date and time that the group begins. |
endDate | timestamp | no | 0000-00-00 00:00:00 | 2012-03-25 14:10:11 | The date and time that the group ends. |
parentGroup | int | no | 0 | 9499 | The ID of the parent group for the group to be created. The default value is 0, which means that the group has no parent; it is the top-level. |
fileData is an array that consists of the information that you want to have stored in your media.
Name | Type | Description |
---|---|---|
result | INT | The ID of the newly created group. |
<?xml version="1.0" encoding="UTF-8"?> <result>NEW_GROUP_ID</result>
{ "status": true, "result": NEW_GROUP_ID }