public function update($account, $name, $keyId, $description = null, $url = null)
    {
        $params = array('name' => $name);

        if (!is_null($description)) {
            $params['description'] = $description;
        }

        if (!is_null($url)) {
            $params['url'] = $url;
        }

        return $this->requestPut(
            sprintf('users/%s/consumers/%d', $account, $keyId),
            $params
        );
    }
public function update($account, $name, $keyId, $description = null, $url = null)
    {
        $params = array('name' => $name);

        if (!is_null($description)) {
            $params['description'] = $description;
        }

        if (!is_null($url)) {
            $params['url'] = $url;
        }

        return $this->requestPut(
            sprintf('users/%s/consumers/%d', $account, $keyId),
            $params
        );
    }
public function update ( $ account , $ name , $ keyId , $ description = null , $ url = null ) { $ params = array ( 'name' => $ name ) ; if ( ! is_null ( $ description ) ) { $ params [ 'description' ] = $ description ; } if ( ! is_null ( $ url ) ) { $ params [ 'url' ] = $ url ; } return $ this -> requestPut ( sprintf ( 'users/%s/consumers/%d' , $ account , $ keyId ) , $ params ) ; }
Update an OAuth consumer

@access public
@param  string           $account     The name of an individual or team account.
@param  string           $name        A display name for the key.
@param  int              $keyId       The id of the key to update.
@param  string           $description A description of the key. (optional)
@param  string           $url         The location of the service that will use the key. (optional)
@return MessageInterface
Update an OAuth consumer