Skip to content

Instantly share code, notes, and snippets.

@SecurityForUs
Forked from lupos/gist:4220069
Created December 5, 2012 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SecurityForUs/4220103 to your computer and use it in GitHub Desktop.
Save SecurityForUs/4220103 to your computer and use it in GitHub Desktop.
public Account GetAccountByUri(string account_uri)
{
Require.Argument("account_uri", account_uri);
var request = new RestRequest(Method.GET) { Resource = account_uri };
request.AddParameter("accounts", account_uri, ParameterType.UrlSegment);
return Execute<Account>(request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment