Method |
Description |
|
__construct ( DataSift_User $user, array $data = [] ) |
Constructs a new DataSift_Source |
|
addAuth ( array $auth, $validate = false ) |
Adds authorization credentials for this DataSift_Source using the auth/add |
|
addResource ( array $resources, $validate = false ) |
Adds resources for this DataSift_Source using the resource/add |
|
delete ( ) : DataSift_Source |
Delete this Source. |
|
fromArray ( array $data ) : DataSift_Source |
Hydrates this Source from an array of API responses |
|
get ( DataSift_User $user, string $id ) : DataSift_Source |
Gets a single DataSift_Source object by ID |
|
getAuth ( ) : array |
Sets the authorization credentials for this DataSift_Source |
|
getCreatedAt ( ) : integer |
Gets the created-at timestamp |
|
getId ( ) : string |
Gets this DataSift_Source's unique identifier |
|
getLogs ( integer $page = 1, integer $perPage = 20 ) : array |
Returns the logs for this source |
|
getName ( ) : string |
Gets the name of this DataSift_Source |
|
getParameters ( ) : array |
Gets the parameters for this DataSift_Source |
|
getResources ( ) : array |
Gets the resources for this DataSift_Source |
|
getSourceType ( ) : string |
Gets the type of this DataSift_Source |
|
getStatus ( ) : string |
Gets the status of this DataSift_Source |
|
getUser ( ) : DataSift_User |
Gets the user this DataSift_Source belongs to |
|
getValidate ( ) : boolean |
Ssets the validate status |
|
listSources ( DataSift_User $user, integer $page = 1, integer $perPage = 25, string | false $sourceType = false ) : array |
Gets a page of Sources where each page contains up to $perPage items. |
|
removeAuth ( array $authIds ) |
Removes authorization credentials for this DataSift_Source using the auth/remove |
|
removeResource ( array $resourceIds ) |
Removes resources for this DataSift_Source using the resource/remove |
|
save ( boolean $validate = true ) : DataSift_Source |
Save this Source |
|
setAuth ( array $auth ) |
Sets the authorization credentials for this DataSift_Source |
|
setCreatedAt ( integer $createdAt ) |
Sets the created-at timestamp |
|
setId ( string $id ) |
Sets this DataSift_Source's unique identifier |
|
setName ( string $name ) |
Sets the name of this DataSift_Source |
|
setParameters ( array $parameters ) |
Sets the parameters for this DataSift_Source, appropriate to the Source type |
|
setResources ( array $resources ) |
Sets the resources for this DataSift_Source |
|
setSourceType ( string $sourceType ) |
Sets the type of this DataSift_Source |
|
setStatus ( string $status ) |
Sets the status of this DataSift_Source |
|
setUser ( DataSift_User $user ) |
Sets the user this DataSift_Source belongs to |
|
setValidate ( boolean $validate ) |
Ssets the validate status |
|
start ( ) : DataSift_Source |
Start this Source |
|
stop ( ) : DataSift_Source |
Stop this Source |
|
toArray ( ) : array |
Converts this Source to an array suitable for transmission to the API |
|