Loading...

GET   https://api.3seventy.com/api/v2.1/account/{accountId}/search-for-tn/{searchId}

Description

Gets the details of a previous search.

Path Parameters

accountId integer The account ID which performed the search. required
searchId integer The ID of the search results to get. required

Response Properties application/json

Id integer ID for later reference.
RequestedQuantity integer The number of phone numbers requested.
Pattern string The search pattern that was used.
SearchBy string The type of search that was performed.
Created string When the search was preformed.
ExpirationDate string When we will no longer allow using this search item for orders.
PhoneNumbers array[string] List of phone numbers that were found.


                    

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

var context = new T70Context();

var searchTnRepo = context.Repository<SearchTn>(new { AccountId = accountId });

var list = searchTnRepo.Get(searchId);

}

}