Beispiel #1
0
        internal ApiResponseModel CallPost(string route, Dictionary <string, string> dict, string token = null)
        {
            client.Initialize();

            if (dict != null)
            {
                foreach (var param in dict)
                {
                    client.AddParameter(param.Key, param.Value);
                }
            }

            if (token != null)
            {
                client.AddHeader("Authorization", $"Bearer {token}");
            }

            var apiResponse = client.MakeCallPost(route);

            return(apiResponse);
        }