Skip to content

Instantly share code, notes, and snippets.

View tbuha's full-sized avatar

Taras Buha tbuha

  • Noralogix
  • Kiev, Ukraine
View GitHub Profile
@tbuha
tbuha / Genesys-Cloud-Queues.sql
Last active December 6, 2022 19:59
Hot to run Genesys Cloud API from Azure SQL
declare @url nvarchar(4000) = N'https://genesys-noralogix.azurewebsites.net/api/v2/routing/queues';
 - declare @headers nvarchar(4000) = N'{"header1":"value_a", "header2":"value2", "header1":"value_b"}'
 - declare @payload nvarchar(max) = N'{"some":{"data":"here"}}'
declare @ret int, @response nvarchar(max);
exec @ret = sp_invoke_external_rest_endpoint
@url = @url,
@method = 'GET',
 - @headers = @headers,
 - @payload = @payload,
@credential = [https://genesys-noralogix.azurewebsites.net/api/v2/routing/queues],
@tbuha
tbuha / ContactListService.cs
Last active January 13, 2021 15:08
How to upload Genesys Purecloud CSV ContactList
using System;
using System.IO;
using System.Net.Http;
using System.Text.Json;
using System.Threading.Tasks;
namespace PCUploadContactList
{
public class ContactListService
{