Loading...

Description

Gets a list of all available Api Keys for supplied account


Request URL

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

Request Properties

Parameter Description Mandatory
accountId An account to fetch a list of keys for. Yes

Response Properties

Property Description
Id Key identificator.
Label User defined identificator.
Key Api Key (used as username for login).
TypeId Type of a key
ValidTo A date and time this key is valid to.
LastActivity A date and time this key was last used.
AccountId An account id this key has direct access to.
UserName Username this key belongs to. Applicable to Master keys only.

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 = XXXX;

var context = new T70Context();

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

var list = apiKeyRepo.GetAll();

}

}

 

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