Loading...

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

Description

Creates a new link to use in a campaign. Links used in this way gain click tracking and are shortened to a 370.bz address to save on transmission space.

Path Parameters

accountId integer The account which owns the link. required
linkId integer The ID of the link to return. 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;

const int linkId = XXXX;

var context = new T70Context();

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

var item = linkRepo.Get(linkId);

}

}