You are here

private function Client::buildArgs in Flickr API Integration 8

Build default args.

Parameters

array $args: Args to request.

string $method: Method to call.

string $format: Format to request.

Return value

array Return the args array.

1 call to Client::buildArgs()
Client::request in src/Service/Client.php
Flickr request.

File

src/Service/Client.php, line 184

Class

Client
Class Client.

Namespace

Drupal\flickr_api\Service

Code

private function buildArgs(array $args, $method, $format = 'json') {

  // Add in additional parameters then sort them for signing.
  $args['api_key'] = $this->apiKey;
  $args['method'] = $method;
  $args['format'] = $format;
  $args['nojsoncallback'] = 1;
  ksort($args);
  return $args;
}