Documentation

GroupControllerApi
in package

GroupControllerApi Class Doc Comment

Tags
category

Class

author

OpenAPI Generator team

link
https://openapi-generator.tech

Table of Contents

contentTypes  = ['addContactsToGroup' => ['application/json'], 'createGroup' => ['application/json'], 'deleteGroup' => ['application/json'], 'getAllGroups' => ['application/json'], 'getGroup' => ['application/json'], 'getGroupWithContacts' => ['application/json'], 'getGroupWithContactsPaginated' => ['application/json'], 'getGroups' => ['application/json'], 'removeContactsFromGroup' => ['application/json']]
$client  : ClientInterface
$config  : Configuration
$headerSelector  : HeaderSelector
$hostIndex  : int
__construct()  : mixed
addContactsToGroup()  : GroupContactsDto
Operation addContactsToGroup
addContactsToGroupAsync()  : PromiseInterface
Operation addContactsToGroupAsync
addContactsToGroupAsyncWithHttpInfo()  : PromiseInterface
Operation addContactsToGroupAsyncWithHttpInfo
addContactsToGroupRequest()  : Request
Create request for operation 'addContactsToGroup'
addContactsToGroupWithHttpInfo()  : array<string|int, mixed>
Operation addContactsToGroupWithHttpInfo
createGroup()  : GroupDto
Operation createGroup
createGroupAsync()  : PromiseInterface
Operation createGroupAsync
createGroupAsyncWithHttpInfo()  : PromiseInterface
Operation createGroupAsyncWithHttpInfo
createGroupRequest()  : Request
Create request for operation 'createGroup'
createGroupWithHttpInfo()  : array<string|int, mixed>
Operation createGroupWithHttpInfo
deleteGroup()  : void
Operation deleteGroup
deleteGroupAsync()  : PromiseInterface
Operation deleteGroupAsync
deleteGroupAsyncWithHttpInfo()  : PromiseInterface
Operation deleteGroupAsyncWithHttpInfo
deleteGroupRequest()  : Request
Create request for operation 'deleteGroup'
deleteGroupWithHttpInfo()  : array<string|int, mixed>
Operation deleteGroupWithHttpInfo
getAllGroups()  : PageGroupProjection
Operation getAllGroups
getAllGroupsAsync()  : PromiseInterface
Operation getAllGroupsAsync
getAllGroupsAsyncWithHttpInfo()  : PromiseInterface
Operation getAllGroupsAsyncWithHttpInfo
getAllGroupsRequest()  : Request
Create request for operation 'getAllGroups'
getAllGroupsWithHttpInfo()  : array<string|int, mixed>
Operation getAllGroupsWithHttpInfo
getConfig()  : Configuration
getGroup()  : GroupDto
Operation getGroup
getGroupAsync()  : PromiseInterface
Operation getGroupAsync
getGroupAsyncWithHttpInfo()  : PromiseInterface
Operation getGroupAsyncWithHttpInfo
getGroupRequest()  : Request
Create request for operation 'getGroup'
getGroups()  : array<string|int, GroupProjection>
Operation getGroups
getGroupsAsync()  : PromiseInterface
Operation getGroupsAsync
getGroupsAsyncWithHttpInfo()  : PromiseInterface
Operation getGroupsAsyncWithHttpInfo
getGroupsRequest()  : Request
Create request for operation 'getGroups'
getGroupsWithHttpInfo()  : array<string|int, mixed>
Operation getGroupsWithHttpInfo
getGroupWithContacts()  : GroupContactsDto
Operation getGroupWithContacts
getGroupWithContactsAsync()  : PromiseInterface
Operation getGroupWithContactsAsync
getGroupWithContactsAsyncWithHttpInfo()  : PromiseInterface
Operation getGroupWithContactsAsyncWithHttpInfo
getGroupWithContactsPaginated()  : PageContactProjection
Operation getGroupWithContactsPaginated
getGroupWithContactsPaginatedAsync()  : PromiseInterface
Operation getGroupWithContactsPaginatedAsync
getGroupWithContactsPaginatedAsyncWithHttpInfo()  : PromiseInterface
Operation getGroupWithContactsPaginatedAsyncWithHttpInfo
getGroupWithContactsPaginatedRequest()  : Request
Create request for operation 'getGroupWithContactsPaginated'
getGroupWithContactsPaginatedWithHttpInfo()  : array<string|int, mixed>
Operation getGroupWithContactsPaginatedWithHttpInfo
getGroupWithContactsRequest()  : Request
Create request for operation 'getGroupWithContacts'
getGroupWithContactsWithHttpInfo()  : array<string|int, mixed>
Operation getGroupWithContactsWithHttpInfo
getGroupWithHttpInfo()  : array<string|int, mixed>
Operation getGroupWithHttpInfo
getHostIndex()  : int
Get the host index
removeContactsFromGroup()  : GroupContactsDto
Operation removeContactsFromGroup
removeContactsFromGroupAsync()  : PromiseInterface
Operation removeContactsFromGroupAsync
removeContactsFromGroupAsyncWithHttpInfo()  : PromiseInterface
Operation removeContactsFromGroupAsyncWithHttpInfo
removeContactsFromGroupRequest()  : Request
Create request for operation 'removeContactsFromGroup'
removeContactsFromGroupWithHttpInfo()  : array<string|int, mixed>
Operation removeContactsFromGroupWithHttpInfo
setHostIndex()  : void
Set the host index
createHttpClientOption()  : array<string|int, mixed>
Create http client option

Constants

contentTypes

public array<string|int, string> contentTypes = ['addContactsToGroup' => ['application/json'], 'createGroup' => ['application/json'], 'deleteGroup' => ['application/json'], 'getAllGroups' => ['application/json'], 'getGroup' => ['application/json'], 'getGroupWithContacts' => ['application/json'], 'getGroupWithContactsPaginated' => ['application/json'], 'getGroups' => ['application/json'], 'removeContactsFromGroup' => ['application/json']]

Properties

Methods

__construct()

public __construct([ClientInterface $client = null ][, Configuration $config = null ][, HeaderSelector $selector = null ], int $hostIndex) : mixed
Parameters
$client : ClientInterface = null
$config : Configuration = null
$selector : HeaderSelector = null
$hostIndex : int

(Optional) host index to select the list of hosts if defined in the OpenAPI spec

Return values
mixed

addContactsToGroup()

Operation addContactsToGroup

public addContactsToGroup(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['addContactsToGroup'][0] ]) : GroupContactsDto

Add contacts to a group

Parameters
$group_id : string

group_id (required)

$update_group_contacts : UpdateGroupContacts

update_group_contacts (required)

$contentType : string = self::contentTypes['addContactsToGroup'][0]

The value for the Content-Type header. Check self::contentTypes['addContactsToGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
GroupContactsDto

addContactsToGroupAsync()

Operation addContactsToGroupAsync

public addContactsToGroupAsync(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['addContactsToGroup'][0] ]) : PromiseInterface

Add contacts to a group

Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['addContactsToGroup'][0]

The value for the Content-Type header. Check self::contentTypes['addContactsToGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

addContactsToGroupAsyncWithHttpInfo()

Operation addContactsToGroupAsyncWithHttpInfo

public addContactsToGroupAsyncWithHttpInfo(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['addContactsToGroup'][0] ]) : PromiseInterface

Add contacts to a group

Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['addContactsToGroup'][0]

The value for the Content-Type header. Check self::contentTypes['addContactsToGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

addContactsToGroupRequest()

Create request for operation 'addContactsToGroup'

public addContactsToGroupRequest(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['addContactsToGroup'][0] ]) : Request
Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['addContactsToGroup'][0]

The value for the Content-Type header. Check self::contentTypes['addContactsToGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

addContactsToGroupWithHttpInfo()

Operation addContactsToGroupWithHttpInfo

public addContactsToGroupWithHttpInfo(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['addContactsToGroup'][0] ]) : array<string|int, mixed>

Add contacts to a group

Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['addContactsToGroup'][0]

The value for the Content-Type header. Check self::contentTypes['addContactsToGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\GroupContactsDto, HTTP status code, HTTP response headers (array of strings)

createGroup()

Operation createGroup

public createGroup(CreateGroupOptions $create_group_options[, string $contentType = self::contentTypes['createGroup'][0] ]) : GroupDto

Create a group

Parameters
$create_group_options : CreateGroupOptions

create_group_options (required)

$contentType : string = self::contentTypes['createGroup'][0]

The value for the Content-Type header. Check self::contentTypes['createGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
GroupDto

createGroupAsync()

Operation createGroupAsync

public createGroupAsync(CreateGroupOptions $create_group_options[, string $contentType = self::contentTypes['createGroup'][0] ]) : PromiseInterface

Create a group

Parameters
$create_group_options : CreateGroupOptions

(required)

$contentType : string = self::contentTypes['createGroup'][0]

The value for the Content-Type header. Check self::contentTypes['createGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createGroupAsyncWithHttpInfo()

Operation createGroupAsyncWithHttpInfo

public createGroupAsyncWithHttpInfo(CreateGroupOptions $create_group_options[, string $contentType = self::contentTypes['createGroup'][0] ]) : PromiseInterface

Create a group

Parameters
$create_group_options : CreateGroupOptions

(required)

$contentType : string = self::contentTypes['createGroup'][0]

The value for the Content-Type header. Check self::contentTypes['createGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

createGroupRequest()

Create request for operation 'createGroup'

public createGroupRequest(CreateGroupOptions $create_group_options[, string $contentType = self::contentTypes['createGroup'][0] ]) : Request
Parameters
$create_group_options : CreateGroupOptions

(required)

$contentType : string = self::contentTypes['createGroup'][0]

The value for the Content-Type header. Check self::contentTypes['createGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

createGroupWithHttpInfo()

Operation createGroupWithHttpInfo

public createGroupWithHttpInfo(CreateGroupOptions $create_group_options[, string $contentType = self::contentTypes['createGroup'][0] ]) : array<string|int, mixed>

Create a group

Parameters
$create_group_options : CreateGroupOptions

(required)

$contentType : string = self::contentTypes['createGroup'][0]

The value for the Content-Type header. Check self::contentTypes['createGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\GroupDto, HTTP status code, HTTP response headers (array of strings)

deleteGroup()

Operation deleteGroup

public deleteGroup(string $group_id[, string $contentType = self::contentTypes['deleteGroup'][0] ]) : void

Delete group

Parameters
$group_id : string

group_id (required)

$contentType : string = self::contentTypes['deleteGroup'][0]

The value for the Content-Type header. Check self::contentTypes['deleteGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
void

deleteGroupAsync()

Operation deleteGroupAsync

public deleteGroupAsync(string $group_id[, string $contentType = self::contentTypes['deleteGroup'][0] ]) : PromiseInterface

Delete group

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['deleteGroup'][0]

The value for the Content-Type header. Check self::contentTypes['deleteGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

deleteGroupAsyncWithHttpInfo()

Operation deleteGroupAsyncWithHttpInfo

public deleteGroupAsyncWithHttpInfo(string $group_id[, string $contentType = self::contentTypes['deleteGroup'][0] ]) : PromiseInterface

Delete group

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['deleteGroup'][0]

The value for the Content-Type header. Check self::contentTypes['deleteGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

deleteGroupRequest()

Create request for operation 'deleteGroup'

public deleteGroupRequest(string $group_id[, string $contentType = self::contentTypes['deleteGroup'][0] ]) : Request
Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['deleteGroup'][0]

The value for the Content-Type header. Check self::contentTypes['deleteGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

deleteGroupWithHttpInfo()

Operation deleteGroupWithHttpInfo

public deleteGroupWithHttpInfo(string $group_id[, string $contentType = self::contentTypes['deleteGroup'][0] ]) : array<string|int, mixed>

Delete group

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['deleteGroup'][0]

The value for the Content-Type header. Check self::contentTypes['deleteGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of null, HTTP status code, HTTP response headers (array of strings)

getAllGroups()

Operation getAllGroups

public getAllGroups(int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getAllGroups'][0] ]) : PageGroupProjection

Get all Contact Groups in paginated format

Parameters
$page : int

Optional page index in list pagination (optional, default to 0)

$size : int = 20

Optional page size in list pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getAllGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getAllGroups'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
PageGroupProjection

getAllGroupsAsync()

Operation getAllGroupsAsync

public getAllGroupsAsync(int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getAllGroups'][0] ]) : PromiseInterface

Get all Contact Groups in paginated format

Parameters
$page : int

Optional page index in list pagination (optional, default to 0)

$size : int = 20

Optional page size in list pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getAllGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getAllGroups'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getAllGroupsAsyncWithHttpInfo()

Operation getAllGroupsAsyncWithHttpInfo

public getAllGroupsAsyncWithHttpInfo(int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getAllGroups'][0] ]) : PromiseInterface

Get all Contact Groups in paginated format

Parameters
$page : int

Optional page index in list pagination (optional, default to 0)

$size : int = 20

Optional page size in list pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getAllGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getAllGroups'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getAllGroupsRequest()

Create request for operation 'getAllGroups'

public getAllGroupsRequest(int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getAllGroups'][0] ]) : Request
Parameters
$page : int

Optional page index in list pagination (optional, default to 0)

$size : int = 20

Optional page size in list pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getAllGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getAllGroups'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

getAllGroupsWithHttpInfo()

Operation getAllGroupsWithHttpInfo

public getAllGroupsWithHttpInfo(int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getAllGroups'][0] ]) : array<string|int, mixed>

Get all Contact Groups in paginated format

Parameters
$page : int

Optional page index in list pagination (optional, default to 0)

$size : int = 20

Optional page size in list pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getAllGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getAllGroups'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\PageGroupProjection, HTTP status code, HTTP response headers (array of strings)

getGroup()

Operation getGroup

public getGroup(string $group_id[, string $contentType = self::contentTypes['getGroup'][0] ]) : GroupDto

Get group

Parameters
$group_id : string

group_id (required)

$contentType : string = self::contentTypes['getGroup'][0]

The value for the Content-Type header. Check self::contentTypes['getGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
GroupDto

getGroupAsync()

Operation getGroupAsync

public getGroupAsync(string $group_id[, string $contentType = self::contentTypes['getGroup'][0] ]) : PromiseInterface

Get group

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroup'][0]

The value for the Content-Type header. Check self::contentTypes['getGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupAsyncWithHttpInfo()

Operation getGroupAsyncWithHttpInfo

public getGroupAsyncWithHttpInfo(string $group_id[, string $contentType = self::contentTypes['getGroup'][0] ]) : PromiseInterface

Get group

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroup'][0]

The value for the Content-Type header. Check self::contentTypes['getGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupRequest()

Create request for operation 'getGroup'

public getGroupRequest(string $group_id[, string $contentType = self::contentTypes['getGroup'][0] ]) : Request
Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroup'][0]

The value for the Content-Type header. Check self::contentTypes['getGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

getGroups()

Operation getGroups

public getGroups([string $contentType = self::contentTypes['getGroups'][0] ]) : array<string|int, GroupProjection>

Get all groups

Parameters
$contentType : string = self::contentTypes['getGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getGroups'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, GroupProjection>

getGroupsAsync()

Operation getGroupsAsync

public getGroupsAsync([string $contentType = self::contentTypes['getGroups'][0] ]) : PromiseInterface

Get all groups

Parameters
$contentType : string = self::contentTypes['getGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getGroups'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupsAsyncWithHttpInfo()

Operation getGroupsAsyncWithHttpInfo

public getGroupsAsyncWithHttpInfo([string $contentType = self::contentTypes['getGroups'][0] ]) : PromiseInterface

Get all groups

Parameters
$contentType : string = self::contentTypes['getGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getGroups'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupsRequest()

Create request for operation 'getGroups'

public getGroupsRequest([string $contentType = self::contentTypes['getGroups'][0] ]) : Request
Parameters
$contentType : string = self::contentTypes['getGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getGroups'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

getGroupsWithHttpInfo()

Operation getGroupsWithHttpInfo

public getGroupsWithHttpInfo([string $contentType = self::contentTypes['getGroups'][0] ]) : array<string|int, mixed>

Get all groups

Parameters
$contentType : string = self::contentTypes['getGroups'][0]

The value for the Content-Type header. Check self::contentTypes['getGroups'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\GroupProjection[], HTTP status code, HTTP response headers (array of strings)

getGroupWithContacts()

Operation getGroupWithContacts

public getGroupWithContacts(string $group_id[, string $contentType = self::contentTypes['getGroupWithContacts'][0] ]) : GroupContactsDto

Get group and contacts belonging to it

Parameters
$group_id : string

group_id (required)

$contentType : string = self::contentTypes['getGroupWithContacts'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContacts'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
GroupContactsDto

getGroupWithContactsAsync()

Operation getGroupWithContactsAsync

public getGroupWithContactsAsync(string $group_id[, string $contentType = self::contentTypes['getGroupWithContacts'][0] ]) : PromiseInterface

Get group and contacts belonging to it

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroupWithContacts'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContacts'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupWithContactsAsyncWithHttpInfo()

Operation getGroupWithContactsAsyncWithHttpInfo

public getGroupWithContactsAsyncWithHttpInfo(string $group_id[, string $contentType = self::contentTypes['getGroupWithContacts'][0] ]) : PromiseInterface

Get group and contacts belonging to it

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroupWithContacts'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContacts'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupWithContactsPaginated()

Operation getGroupWithContactsPaginated

public getGroupWithContactsPaginated(string $group_id, int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getGroupWithContactsPaginated'][0] ]) : PageContactProjection
Parameters
$group_id : string

group_id (required)

$page : int

Optional page index in group contact pagination (optional, default to 0)

$size : int = 20

Optional page size in group contact pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getGroupWithContactsPaginated'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContactsPaginated'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
PageContactProjection

getGroupWithContactsPaginatedAsync()

Operation getGroupWithContactsPaginatedAsync

public getGroupWithContactsPaginatedAsync(string $group_id, int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getGroupWithContactsPaginated'][0] ]) : PromiseInterface
Parameters
$group_id : string

(required)

$page : int

Optional page index in group contact pagination (optional, default to 0)

$size : int = 20

Optional page size in group contact pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getGroupWithContactsPaginated'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContactsPaginated'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupWithContactsPaginatedAsyncWithHttpInfo()

Operation getGroupWithContactsPaginatedAsyncWithHttpInfo

public getGroupWithContactsPaginatedAsyncWithHttpInfo(string $group_id, int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getGroupWithContactsPaginated'][0] ]) : PromiseInterface
Parameters
$group_id : string

(required)

$page : int

Optional page index in group contact pagination (optional, default to 0)

$size : int = 20

Optional page size in group contact pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getGroupWithContactsPaginated'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContactsPaginated'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

getGroupWithContactsPaginatedRequest()

Create request for operation 'getGroupWithContactsPaginated'

public getGroupWithContactsPaginatedRequest(string $group_id, int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getGroupWithContactsPaginated'][0] ]) : Request
Parameters
$group_id : string

(required)

$page : int

Optional page index in group contact pagination (optional, default to 0)

$size : int = 20

Optional page size in group contact pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getGroupWithContactsPaginated'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContactsPaginated'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

getGroupWithContactsPaginatedWithHttpInfo()

Operation getGroupWithContactsPaginatedWithHttpInfo

public getGroupWithContactsPaginatedWithHttpInfo(string $group_id, int $page[, int $size = 20 ][, string $sort = 'ASC' ][, DateTime $since = null ][, DateTime $before = null ][, string $contentType = self::contentTypes['getGroupWithContactsPaginated'][0] ]) : array<string|int, mixed>
Parameters
$group_id : string

(required)

$page : int

Optional page index in group contact pagination (optional, default to 0)

$size : int = 20

Optional page size in group contact pagination (optional, default to 20)

$sort : string = 'ASC'

Optional createdAt sort direction ASC or DESC (optional, default to 'ASC')

$since : DateTime = null

Filter by created at after the given timestamp (optional)

$before : DateTime = null

Filter by created at before the given timestamp (optional)

$contentType : string = self::contentTypes['getGroupWithContactsPaginated'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContactsPaginated'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\PageContactProjection, HTTP status code, HTTP response headers (array of strings)

getGroupWithContactsRequest()

Create request for operation 'getGroupWithContacts'

public getGroupWithContactsRequest(string $group_id[, string $contentType = self::contentTypes['getGroupWithContacts'][0] ]) : Request
Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroupWithContacts'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContacts'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

getGroupWithContactsWithHttpInfo()

Operation getGroupWithContactsWithHttpInfo

public getGroupWithContactsWithHttpInfo(string $group_id[, string $contentType = self::contentTypes['getGroupWithContacts'][0] ]) : array<string|int, mixed>

Get group and contacts belonging to it

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroupWithContacts'][0]

The value for the Content-Type header. Check self::contentTypes['getGroupWithContacts'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\GroupContactsDto, HTTP status code, HTTP response headers (array of strings)

getGroupWithHttpInfo()

Operation getGroupWithHttpInfo

public getGroupWithHttpInfo(string $group_id[, string $contentType = self::contentTypes['getGroup'][0] ]) : array<string|int, mixed>

Get group

Parameters
$group_id : string

(required)

$contentType : string = self::contentTypes['getGroup'][0]

The value for the Content-Type header. Check self::contentTypes['getGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\GroupDto, HTTP status code, HTTP response headers (array of strings)

getHostIndex()

Get the host index

public getHostIndex() : int
Return values
int

Host index

removeContactsFromGroup()

Operation removeContactsFromGroup

public removeContactsFromGroup(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['removeContactsFromGroup'][0] ]) : GroupContactsDto

Remove contacts from a group

Parameters
$group_id : string

group_id (required)

$update_group_contacts : UpdateGroupContacts

update_group_contacts (required)

$contentType : string = self::contentTypes['removeContactsFromGroup'][0]

The value for the Content-Type header. Check self::contentTypes['removeContactsFromGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
GroupContactsDto

removeContactsFromGroupAsync()

Operation removeContactsFromGroupAsync

public removeContactsFromGroupAsync(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['removeContactsFromGroup'][0] ]) : PromiseInterface

Remove contacts from a group

Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['removeContactsFromGroup'][0]

The value for the Content-Type header. Check self::contentTypes['removeContactsFromGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

removeContactsFromGroupAsyncWithHttpInfo()

Operation removeContactsFromGroupAsyncWithHttpInfo

public removeContactsFromGroupAsyncWithHttpInfo(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['removeContactsFromGroup'][0] ]) : PromiseInterface

Remove contacts from a group

Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['removeContactsFromGroup'][0]

The value for the Content-Type header. Check self::contentTypes['removeContactsFromGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
PromiseInterface

removeContactsFromGroupRequest()

Create request for operation 'removeContactsFromGroup'

public removeContactsFromGroupRequest(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['removeContactsFromGroup'][0] ]) : Request
Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['removeContactsFromGroup'][0]

The value for the Content-Type header. Check self::contentTypes['removeContactsFromGroup'] to see the possible values for this operation

Tags
throws
InvalidArgumentException
Return values
Request

removeContactsFromGroupWithHttpInfo()

Operation removeContactsFromGroupWithHttpInfo

public removeContactsFromGroupWithHttpInfo(string $group_id, UpdateGroupContacts $update_group_contacts[, string $contentType = self::contentTypes['removeContactsFromGroup'][0] ]) : array<string|int, mixed>

Remove contacts from a group

Parameters
$group_id : string

(required)

$update_group_contacts : UpdateGroupContacts

(required)

$contentType : string = self::contentTypes['removeContactsFromGroup'][0]

The value for the Content-Type header. Check self::contentTypes['removeContactsFromGroup'] to see the possible values for this operation

Tags
throws
ApiException

on non-2xx response

throws
InvalidArgumentException
Return values
array<string|int, mixed>

of \MailSlurp\Models\GroupContactsDto, HTTP status code, HTTP response headers (array of strings)

setHostIndex()

Set the host index

public setHostIndex(int $hostIndex) : void
Parameters
$hostIndex : int

Host index (required)

Return values
void

createHttpClientOption()

Create http client option

protected createHttpClientOption() : array<string|int, mixed>
Tags
throws
RuntimeException

on file opening failure

Return values
array<string|int, mixed>

of http client options

Search results