-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate-queue.cs
More file actions
32 lines (27 loc) · 840 Bytes
/
create-queue.cs
File metadata and controls
32 lines (27 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using com.freeclimb.api;
using com.freeclimb.api.queue;
namespace CreateQueue
{
class Program
{
static string getFreeClimbAccountId()
{
return System.Environment.GetEnvironmentVariable("ACCOUNT_ID");
}
static string getFreeClimbApiKeys()
{
return System.Environment.GetEnvironmentVariable("API_KEY");
}
static void Main(string[] args)
{
string alias = "My_First_Queue";
QueueOptions options = new QueueOptions();
options.setAlias(alias); // Set the optional alias
// Create FreeClimbClient object
FreeClimbClient client = new FreeClimbClient(getFreeClimbAccountId(),
getFreeClimbApiKeys());
// Invoke method to create queue metadata
Queue queue = client.getQueuesRequester.create(options);
}
}
}