Loading...

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

Description

Gets a list of all keywords for a specific account regardless of the channel.

Path Parameters

accountId integer The account ID which owns the keywords. required

Response Properties application/json

AccountId integer The account ID which owns the link
CampaignId integer The campaign this link is part of.
ContactAttributeDefinitionId integer The contact attribute ID to append to the URL if desired.
LinkType string Enumeration mapping to LinkTypeId
LinkTypeId number The type of link this is. Either Static or Dynamic
Name string The name of the link.
RedirectURL string The URL we should redirect to.
RequestLocation boolean Set if we should request the user's location before redirecting.
ShortBaseURL string The short URL to use.
UpdateContactAttributeDefinitionId integer The contact attribute ID to be updated.
UpdateContactAttributeValue string The value to update the contact attribute to.


                    

C#


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using ThreeSeventy.Vector.Client;
using ThreeSeventy.Vector.Client.Enums;
using ThreeSeventy.Vector.Client.Models;

public class Program
{

private static void Main(string[] args)
{

const int accountId = XXXX;

var context = new T70Context();

var linkRepo = context.Repository<Link>(new { AccountId = accountId});

var list = linkRepo.GetAll();

}

}