Function build_auth_array - echiong/testRepo GitHub Wiki
Assemble an associative array with oauth values
Located at application/helpers/oauth_helper.php
Type: array
Description: of all the oauth parameters
string $baseurl the base url we are authenticating against.
$baseurl
the base url we are authenticating against.
2. ` string $key your consumer key ` ` $key `your consumer key
3. ` string $secret either your consumer secret key or the file location of your rsa private key. ` ` $secret `either your consumer secret key or the file location of your rsa private key.
4. ` array $extra additional oauth parameters that should be included (you must urlencode, if appropriate, before calling this function) ` ` $extra = array() `additional oauth parameters that should be included (you must urlencode, if appropriate, before calling this function)
5. ` string $method either GET or POST ` ` $method = 'GET' `either GET or POST
6. ` string $algo either HMAC-SHA1 or RSA-SHA1 (NOTE: this affects what you put in for the secret parameter) ` ` $algo = OAUTH_ALGORITHMS::RSA_SHA1 `either HMAC-SHA1 or RSA-SHA1 (NOTE: this affects what you put in for the secret parameter)