lib/XeroOAuth.php
function extract_params($body) {
		$kvs = explode ( '&', $body );
		$decoded = array ();
		foreach ( $kvs as $kv ) {
			$kv = explode ( '=', $kv, 2 );
			$kv [0] = $this->safe_decode ( $kv [0] );
			$kv [1] = $this->safe_decode ( $kv [1] );
			$decoded [$kv [0]] = $kv [1];
		}
		return $decoded;
	}
function extract_params($body) {
		$kvs = explode ( '&', $body );
		$decoded = array ();
		foreach ( $kvs as $kv ) {
			$kv = explode ( '=', $kv, 2 );
			$kv [0] = $this->safe_decode ( $kv [0] );
			$kv [1] = $this->safe_decode ( $kv [1] );
			$decoded [$kv [0]] = $kv [1];
		}
		return $decoded;
	}
function extract_params ( $ body ) { $ kvs = explode ( '&' , $ body ) ; $ decoded = array ( ) ; foreach ( $ kvs as $ kv ) { $ kv = explode ( '=' , $ kv , 2 ) ; $ kv [ 0 ] = $ this -> safe_decode ( $ kv [ 0 ] ) ; $ kv [ 1 ] = $ this -> safe_decode ( $ kv [ 1 ] ) ; $ decoded [ $ kv [ 0 ] ] = $ kv [ 1 ] ; } return $ decoded ; }
Extracts and decodes OAuth parameters from the passed string

@param string $body
the response body from an OAuth flow method
@return array the response body safely decoded to an array of key => values
Extracts and decodes OAuth parameters from the passed string