You are here

private function Client::buildArgHash in Instagram API 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
Instagram request.

File

src/Service/Client.php, line 159

Class

Client
Class Client.

Namespace

Drupal\instagram_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;
}