You are here

private function Client::buildArgHash in Flickr API Integration 8

Build Hash from Args array.

Parameters

array $args: Args to request.

Return value

string Return string.

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

File

src/Service/Client.php, line 204

Class

Client
Class Client.

Namespace

Drupal\flickr_api\Service

Code

private function buildArgHash(array $args) {

  // Build an argument hash API signing (we'll also use it for the cache id).
  $argHash = '';
  foreach ($args as $k => $v) {
    $argHash .= $k . $v;
  }
  return $argHash;
}