\FuelSdkET_Util

This utility class performs all the REST operation over CURL.

Summary

Methods
Properties
Constants
restGet()
restPost()
restPatch()
restPut()
restDelete()
isAssoc()
getSDKVersion()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

restGet()

restGet(string  $url, \FuelSdk\ET_Client  $authStub,   $isAuthConnection = "") : string

Parameters

string $url

The resource URL for the REST API

\FuelSdk\ET_Client $authStub

The ET client object which performs the auth token, refresh token using clientID clientSecret

$isAuthConnection

Returns

string —

The response payload from the REST service

restPost()

restPost(string  $url, string  $content, \FuelSdk\ET_Client  $authStub,   $isAuthConnection = "") : string

Parameters

string $url

The resource URL for the REST API

string $content

A string of JSON which will be passed to the REST API

\FuelSdk\ET_Client $authStub

The ET client object which performs the auth token, refresh token using clientID clientSecret

$isAuthConnection

Returns

string —

The response payload from the REST service

restPatch()

restPatch(string  $url, string  $content, \FuelSdk\ET_Client  $authStub,   $isAuthConnection = "") : string

Parameters

string $url

The resource URL for the REST API

string $content

A string of JSON which will be passed to the REST API

\FuelSdk\ET_Client $authStub

The ET client object which performs the auth token, refresh token using clientID clientSecret

$isAuthConnection

Returns

string —

The response payload from the REST service

restPut()

restPut(string  $url, string  $content, \FuelSdk\ET_Client  $authStub,   $isAuthConnection = "") : string

Parameters

string $url

The resource URL for the REST API

string $content

A string of JSON which will be passed to the REST API

\FuelSdk\ET_Client $authStub

The ET client object which performs the auth token, refresh token using clientID clientSecret

$isAuthConnection

Returns

string —

The response payload from the REST service

restDelete()

restDelete(string  $url, \FuelSdk\ET_Client  $authStub,   $isAuthConnection = "") : string

Parameters

string $url

The resource URL for the REST API

\FuelSdk\ET_Client $authStub

The ET client object which performs the auth token, refresh token using clientID clientSecret

$isAuthConnection

Returns

string —

The response payload from the REST service

isAssoc()

isAssoc(array  $array) : boolean

Parameters

array $array

The array

Returns

boolean —

Returns true if the parameter array is dictionary type array, false otherwise.

getSDKVersion()

getSDKVersion() : string

This method will not change until a major release.

Returns

string