using HexaEightASKClientLibrary.HexaEight;
public static void Main()
var generic_resource_login_token = "hoM5rFpCnOU8a/fyYmzrnWFHcn8olTx5lmffFM1kb53XXPyDmvoklzJg+xPULw814pYJtx2vagrG0KNWdMd+F8CgrxjxpUeRt28LJLl8dpv1O88rfhdjQJ3DFcnNofKf5zxXfziG0Ado7AhtJoqLBEHMiKMdIags0EEYetyXRCRvLo5hoDP5UXhhxrDkzDzglUL2O1sQ8m3Z8lp3MF8aMrw6TfwT6C3K+NIuPjfrNRmMM6Odbd2DDvgQhbAM1iDEqXsSvfjBFUdYbJTqPXIdgkYAL3VLj+i6qCh8lZwR/go=.MWDziZGJKH8cdYZ3PYe7LCROUt/0ZK5/UurEu29rqm3YxsiOJlsMqiOuyAFbqlx59ql5P3F+CV7TzV7tEy/q0PuZ1jm4d2Qpi/qL+PElrCsm/wO+Zc1uMAKPxKAW0BBhIk1yWk9/v85g22kbGKzS03Xt/k8FLccPuOhSlb7iV/F18u85NS16HfAs3SJuFuykzQzgHVkGZlU2/5PHpk1IOFwJrjN04s7hg9zKr6YllPbA8TCsW/IVO5C+2JeJKSmXVZwK5WKVMGJKxz2DNiC3OnTOxm2+RExFolIcLF2g8nmfq61u9LMqAiPR5rPRP/oA1dkmSnCoc/WXbgX8kHbQ+g==:oyiiTdv78EqJ+UgK0bv4jJBCn+nDN+LE9Of9Uv8RnZAtBrUffqVMiITj2Hd61F0MhPjHzkQVRMrFvnE59P5vblLf5Awd15UFL7k7FmJB1oo3yqOnb4ZOpW2Xy/vZEXTidFfXJbIM9y/cPKnQmk/eY6VZhwpi1uktG3QzyFvRn9oXuKqto8aIB/8O19zftyf2MVsmbcrZy+AWjLufZuSdQxZPzX00p70Eywpb8nowfGLFgeqQOKyakVgkMNkB97iRVZwK5WKVMGJKxz2DNiC3OnTOxm2+RExFolIcLF2g8nmfq61u9LMqAiPR5rPRP/oA1dkmSnCoc/WXbgX8kHbQ+g==";
var generic_resource_name = "A9CB8EFAF7D258CC03DCD71C37295B5FE7BE435DF13A43239D34EEDD4C21D464";
var generic_resource_login_token_password = "h-Hq4C-s99D.HcKU^c255*^=q&$P#Xu";
var myhost = new ASKClient(generic_resource_login_token, generic_resource_name, generic_resource_login_token_password);
myhost.SetRapidAPIKey("Put Your API Key Here");
var resource_masked_identifier = generic_resource_login_token.Split(".")[0];
Int64 kgt = Convert.ToInt64((DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0)).TotalMinutes);
string data3 = "Generic Instance 1 Data Set B (3) " + new Random().NextInt64();
using var client = new HttpClient();
var encrypteddata = myhost.EncryptMessageByKnownName("32F06EE16908D7D40732761920122DDC80068DF91C3542DD9C787D49C6F214E5",data3).GetAwaiter().GetResult();
var senddatasink_url = "https://dweet.io/dweet/for/32F06EE16908D7D40732761920122DDC80068DF91C3542DD9C787D49C6F214E5?data=" + System.Web.HttpUtility.UrlEncode(kgt.ToString() + "|" + resource_masked_identifier + "." + encrypteddata);
var dataresult = client.GetAsync(senddatasink_url).GetAwaiter().GetResult();
Console.WriteLine(data3 + " Posted To Common Sink With Response : " + dataresult.StatusCode);