Loading...

Description

Revoke an Api Key


Request URL

DELETE   https://api.3seventy.com/api/v2.1/account/{accountId}/api-key/{keyId}

Request Properties

Parameter Description Mandatory
accountId An account which holds this Api Key. Yes
keyId An Api Key to revoke. Yes

C#
PHP


using System;
using System.Collections.Generic;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXX;

const int keyId = XXXX;

var context = new T70Context();

var apiKeyRepo = context.Repository<ApiKey>(new { AccountId = accountId });

var item = apiKeyRepo.Get(keyId);

apiKeyRepo.Delete(item);

}

}

 

Stay tuned for JAVA code snippet
Stay tuned for RUBY code snippet
Stay tuned for PHP code snippet