src/snac/server/ServerExecutor.php
/**
     * Revoke API Key
     *
     * Given the label of an API key, if that key belongs to this user, then this method will
     * request DBUser to remove the key from the database (revoke it).
     *
     * @param string[] $input Input array from the Server object
     * @throws \snac\exceptions\SNACInputException
     * @return string[] The response to send to the client
     */
Revoke API Key
Given the label of an API key, if that key belongs to this user, then this method will
request DBUser to remove the key from the database (revoke it).

@param string[] $input Input array from the Server object
@throws \snac\exceptions\SNACInputException
@return string[] The response to send to the client
Revoke API Key Given the label of an API key if that key belongs to this user then this method will request DBUser to remove the key from the database ( revoke it ) . @param string [] $input Input array from the Server object @throws \ snac \ exceptions \ SNACInputException @return string [] The response to send to the client
public function revokeUserAPIKey($input) {
        $response = [
            "result" => "failure"
        ];
        if ($this->user != null && $this->user !== false && isset($input["apikey_label"])) {
            $success = $this->uStore->revokeUserAPIKey($this->user, $input["apikey_label"]);
            if ($success)
                $response["result"] = "success";
        }
        return $response;
    }
public function revokeUserAPIKey ( $ input ) { $ response = [ " result " => " failure " ] ; if ( $ this -> user != null && $ this -> user !== false && isset ( $ input [ " apikey_label " ] ) ) { $ success = $ this -> uStore -> revokeUserAPIKey ( $ this -> user , $ input [ " apikey_label " ] ) ; if ( $ success ) $ response [ " result " ] = " success " ; } return $ response ; }
Revoke API Key
 Given the label of an API key, if that key belongs to this user, then this method will
 request DBUser to remove the key from the database (revoke it).
Revoke API Key Given the label of an API key if that key belongs to this user then this method will request DBUser to remove the key from the database ( revoke it ) .
// can only generate an API key for logged-in users