Not logged in - Login
< back

Library: .Net

We have made a library for .Net to help you start using A Trigger in a minute. This .Net library is made to avoid possible errors in your application. Even if ATrigger.com API server become unavailable, your application will work without any problem. On the other hand, all requests are Async by default and now slowness will happen.


Prerequisites

  1. First you need to follow Quick Start Guide.
  2. You have this personal details from your Account Setup page:
    1. API Key
    2. API Secret
  3. .Net 2+


Step 1: Library

Use NuGet to install the library. From the Visual Studio Tools menu, select Library Package Manager and then click Package Manager Console. Run:

Install-Package ATrigger

You only need to initialize once at the start of your program. You can then keep using the ATrigger singleton anywhere in your code.

/*
//Debugging-friendly
ATrigger.Initialize("YOUR_APIKey", "YOUR_APISecret", false, true);
*/
ATrigger.Initialize("YOUR_APIKey", "YOUR_APISecret");


In development you might want to use development-friendlydevelopment settings:settings above to start debugging.


//ATrigger.Initialize("YOUR_APIKey", "YOUR_APISecret", async, debug);
ATrigger.Initialize("YOUR_APIKey", "YOUR_APISecret", false, true);