{"_id":"54cc2149380ecd0d00ca18b8","__v":6,"category":{"_id":"54cc2149380ecd0d00ca18b3","project":"5436a1e1d0ffee0e00f18f8c","version":"54cc2148380ecd0d00ca18aa","__v":4,"pages":["54cc2149380ecd0d00ca18b8","54cfa9ebbba1a0230087417e","54cfb63b3995cf0d0006f6de","55b40c415e6f140d0088fd71"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-31T17:07:44.342Z","from_sync":false,"order":8,"slug":"net-client","title":".Net Client"},"user":"5436a1afb7cf0e1c0020d9ca","version":{"_id":"54cc2148380ecd0d00ca18aa","__v":2,"forked_from":"5436a1e1d0ffee0e00f18f8f","project":"5436a1e1d0ffee0e00f18f8c","createdAt":"2015-01-31T00:26:48.753Z","releaseDate":"2015-01-31T00:26:48.753Z","categories":["54cc2149380ecd0d00ca18ab","54cc2149380ecd0d00ca18ac","54cc2149380ecd0d00ca18ad","54cc2149380ecd0d00ca18ae","54cc2149380ecd0d00ca18af","54cc2149380ecd0d00ca18b0","54cc2149380ecd0d00ca18b1","54cc2149380ecd0d00ca18b2","54cc2149380ecd0d00ca18b3","552f29ca633a5b0d00e99d09"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"parentDoc":null,"project":"5436a1e1d0ffee0e00f18f8c","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-10-31T17:09:44.785Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"never","params":[],"url":""},"isReference":false,"order":1,"body":"##Installation\nInstall via nuget. From within Visual Studo, right-click on the your Project and choose Manage NuGet packages. Search for \"ShippingEasy\". \n\nAlternatively, you can install the package using the NuGet Package Manager Console (available from VS Tools menu):\n\n    PM> Install-Package ShippingEasy\n    \nOr, you can download a .zip file with the binaries from: https://github.com/ShippingEasy/shipping_easy-dotnet/releases/\n\n##Configuration\nYou will need a ShippingEasy API key and secret to sign your API requests. These can be found in your account's settings (https://app.shippingeasy.com/settings/api_credentials).\n\n##Example\nOnce you have the credentials, you can use them to create an instance of the ShippingEasy.Client. The Client has methods to retrieve and create orders. The following is an example program that will download orders from your ShippingEasy account:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"using System;\\n\\nnamespace demo\\n{\\n  class Program\\n  {\\n    static void Main(string[] args)\\n    {\\n      // These values should be loaded from a configuration file.\\n      string apiKey = \\\"f9a7c8ebdfd34beaf260d9b0296c7058\\\";\\n      string apiSecret = \\\"850fd4e023478758360b0d1d1817448f0a57b3176be25ffe8a7cf2236eca9ec4\\\";\\n\\n      var client = new ShippingEasy.Client(apiKey, apiSecret);\\n      var query = new ShippingEasy.OrderQuery {\\n        Status = \\\"ready_for_shipment, shipped\\\"\\n      }\\n      var response = client.GetOrders(query);\\n      if (response.Success)\\n      {\\n        foreach (var order in response.Orders)\\n        {\\n          Console.WriteLine(\\\"{0} {1} {2} {3}\\\",\\n            order.OrderedAt,\\n            order.ExternalOrderIdentifier,\\n            order.Recipients[0].LastName,\\n            order.OrderStatus);\\n        }\\n      }\\n      else\\n      {\\n        Console.WriteLine(response.Errors);\\n      }\\n    }\\n  }\\n}\",\n      \"language\": \"csharp\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"dotnet-getting-started","type":"basic","title":"Getting Started"}
##Installation Install via nuget. From within Visual Studo, right-click on the your Project and choose Manage NuGet packages. Search for "ShippingEasy". Alternatively, you can install the package using the NuGet Package Manager Console (available from VS Tools menu): PM> Install-Package ShippingEasy Or, you can download a .zip file with the binaries from: https://github.com/ShippingEasy/shipping_easy-dotnet/releases/ ##Configuration You will need a ShippingEasy API key and secret to sign your API requests. These can be found in your account's settings (https://app.shippingeasy.com/settings/api_credentials). ##Example Once you have the credentials, you can use them to create an instance of the ShippingEasy.Client. The Client has methods to retrieve and create orders. The following is an example program that will download orders from your ShippingEasy account: [block:code] { "codes": [ { "code": "using System;\n\nnamespace demo\n{\n class Program\n {\n static void Main(string[] args)\n {\n // These values should be loaded from a configuration file.\n string apiKey = \"f9a7c8ebdfd34beaf260d9b0296c7058\";\n string apiSecret = \"850fd4e023478758360b0d1d1817448f0a57b3176be25ffe8a7cf2236eca9ec4\";\n\n var client = new ShippingEasy.Client(apiKey, apiSecret);\n var query = new ShippingEasy.OrderQuery {\n Status = \"ready_for_shipment, shipped\"\n }\n var response = client.GetOrders(query);\n if (response.Success)\n {\n foreach (var order in response.Orders)\n {\n Console.WriteLine(\"{0} {1} {2} {3}\",\n order.OrderedAt,\n order.ExternalOrderIdentifier,\n order.Recipients[0].LastName,\n order.OrderStatus);\n }\n }\n else\n {\n Console.WriteLine(response.Errors);\n }\n }\n }\n}", "language": "csharp" } ] } [/block]