Loading...

Description

Gets the details of a previous search.


Request URL

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

Request Properties

Parameter Description Mandatory
accountId The account ID which performed the search. Yes
searchId The ID of the search results to get. Yes

Response Properties

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

C#
PHP


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);

}

}

 

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