-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_helper.cs
44 lines (34 loc) · 1.19 KB
/
api_helper.cs
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
33
34
35
36
37
38
39
40
41
42
43
44
/*
* snapWONDERS OpenAPI Specification
* API version: 1.0
*
* Copyright (c) snapWONDERS.com, All rights reserved 2023
*
* Author: Kenneth Springer (https://kennethbspringer.au)
*
* All the snapWONDERS API services is available over the Clearnet / **Web** and Dark Web **Tor** and **I2P**
* Read details: https://snapwonders.com/snapwonders-openapi-specification
*
*/
namespace snapwonders_csharp_client
{
public class ApiHelper
{
// The API URLs
public const string URL_SNAPWONDERS_API = "https://api.snapwonders.com/v1/";
public const string URL_UPLOAD_CREATE_MEDIA_URL = "upload/create-media-url";
public const string URL_JOB_CREATE_ANALYSE = "job/analyse";
// Content types
public const string HTTP_CONTENT_TYPE_JSON = "application/json";
// Job status
public const string JOB_STATUS_WAITING = "WAITING";
public const string JOB_STATUS_PROCESSING = "PROCESSING";
public const string JOB_STATUS_COMPLETED = "COMPLETED";
// Adds the headers
public static void AddApiHeaders(ref HttpRequestMessage req)
{
req.Headers.Add("Accept", "*/*");
req.Headers.Add("Api_Key", ConstHelper.SNAPWONDERS_API_KEY);
}
}
}