src/Api/CampaignApi.php
private function parseTokens(array $tokens)
    {
        return array_map(function ($token, $key) {
            return ['name' => $key, 'value' => $token];
        }, $tokens, array_keys($tokens));
    }
private function parseTokens(array $tokens)
    {
        return array_map(function ($token, $key) {
            return ['name' => $key, 'value' => $token];
        }, $tokens, array_keys($tokens));
    }
private function parseTokens ( array $ tokens ) { return array_map ( function ( $ token , $ key ) { return [ 'name' => $ key , 'value' => $ token ] ; } , $ tokens , array_keys ( $ tokens ) ) ; }
Parses an array of tokens and formats for sending in request

@param array $tokens
@return array
Parses an array of tokens and formats for sending in request