You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingContactLabAPIClient.ClabService;usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceContactLabApiClientExample{publicclassGetCampaignById{publicstaticvoidMain(){ClabServiceClientClabServiceClient=null;intCampaignId=811;ClabServiceClient=newClabServiceClient();Campaigncampaign=null;try{AuthTokenToken=ClabServiceClient.borrowToken(ContactlabApiClientExamples.Properties.Settings.Default.ApiKey,ContactlabApiClientExamples.Properties.Settings.Default.UserKey);campaign=ClabServiceClient.getCampaign(Token,CampaignId);ClabServiceClient.invalidateToken(Token);Console.WriteLine("Campaign id is "+campaign.identifier+" with name "+campaign.name);}catch(Exceptione){Console.WriteLine("Exception with message: \" "+e.Message+"\"");}Console.ReadLine();}}}