Skip to content

Instantly share code, notes, and snippets.

View michaelpryor's full-sized avatar

Michael Pryor michaelpryor

View GitHub Profile

Keybase proof

I hereby claim:

  • I am michaelpryor on github.
  • I am michaelpryor (https://keybase.io/michaelpryor) on keybase.
  • I have the public key with fingerprint 121D FE1B 43BA 25DD DD89  0AEE 5127 508E 7A46 30C2

To claim this, I am signing this object:

@michaelpryor
michaelpryor / gist:2004226
Created March 8, 2012 23:55
GetData function for getting HTTP data
private bool GetData(string sURL, out string sResponse)
{
sResponse = "";
try
{
WebRequest request = WebRequest.Create(sURL);
request.Timeout = 20000;
// Set the credentials.
request.Credentials = new NetworkCredential("apikey", "password");
// Get the response.
@michaelpryor
michaelpryor / gist:2004222
Created March 8, 2012 23:54
C# Shopify to Quickbooks code
// Connect to currently open Quickbooks File
//
sm.OpenConnection(" ", "SOJournal2QB");
bOpenConnection = true;
sm.BeginSession("", ENOpenMode.omDontCare);
bBeginSession = true;
//