Skip to content

Instantly share code, notes, and snippets.

View natalia-stovbun's full-sized avatar

Natalia natalia-stovbun

View GitHub Profile
@natalia-stovbun
natalia-stovbun / gist:b9811434118219cc8c6b
Created February 20, 2016 07:30 — forked from DavidStrickland0/gist:888677646e64956e6871
Upwork(formerly Odesk) API Call using C#
public static PublicInfoResponse LoadResponse()
{
PublicInfoResponse publicInfoResponse = (PublicInfoResponse)HttpRuntime.Cache["Odesk:PublicInfoResponse"];
if (publicInfoResponse == null)
{
Models.OAuthParams parameters;
string method = "GET";
parameters = new Models.OAuthParams();
parameters.Token = ConfigurationManager.AppSettings["apiKeys:UpworkoAuthToken"];