public function createPlatformEndpoint($platformApplicationArn, $token, $userData = null) {
		if(empty($platformApplicationArn) || empty($token)) {
			throw new InvalidArgumentException('Must supply a PlatformApplicationArn & Token to create platform endpoint');
		}

		$attributes = array(
			'PlatformApplicationArn' => $platformApplicationArn,
			'Token' => $token
		);

		if(!empty($userData)) {
			$attributes['CustomUserData'] = $userData;
		}

		$response = $this->_request('CreatePlatformEndpoint', $attributes);

		return strval($response->CreatePlatformEndpointResult->EndpointArn);
	}
public function createPlatformEndpoint($platformApplicationArn, $token, $userData = null) {
		if(empty($platformApplicationArn) || empty($token)) {
			throw new InvalidArgumentException('Must supply a PlatformApplicationArn & Token to create platform endpoint');
		}

		$attributes = array(
			'PlatformApplicationArn' => $platformApplicationArn,
			'Token' => $token
		);

		if(!empty($userData)) {
			$attributes['CustomUserData'] = $userData;
		}

		$response = $this->_request('CreatePlatformEndpoint', $attributes);

		return strval($response->CreatePlatformEndpointResult->EndpointArn);
	}
public function createPlatformEndpoint ( $ platformApplicationArn , $ token , $ userData = null ) { if ( empty ( $ platformApplicationArn ) || empty ( $ token ) ) { throw new InvalidArgumentException ( 'Must supply a PlatformApplicationArn & Token to create platform endpoint' ) ; } $ attributes = array ( 'PlatformApplicationArn' => $ platformApplicationArn , 'Token' => $ token ) ; if ( ! empty ( $ userData ) ) { $ attributes [ 'CustomUserData' ] = $ userData ; } $ response = $ this -> _request ( 'CreatePlatformEndpoint' , $ attributes ) ; return strval ( $ response -> CreatePlatformEndpointResult -> EndpointArn ) ; }
Create Platform endpoint

@link http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformEndpoint.html
@param string $platformApplicationArn
@param string $token
@param string $userData
@return string
@throws InvalidArgumentException
Create Platform endpoint