Back to Collection Items
System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at System.Runtime.InteropServices.Marshal.StringToHGlobalUni(String s)
at Chilkat.CkMarshal.StringToX(String s, XString* x)
at Chilkat.Xml.LoadXml(String xmlData)
at ChilkatApi.XClass.LoadClass(String className, Log log)
at ChilkatApi.ApiCache.getApiClass(String className, Log log)
at ChilkatApi.ApiCache.getApiMethod(String className, String methodName, Log log)
at ChilkatCode.CodeGen.getXEntry(String className, String entryName)
at ChilkatCode.CodeGen.getEntryType(String varName, String entryName)
at ChilkatCode.Parser.objectAccess(String varName, Xml xml)
at ChilkatCode.Parser.varAccess(Xml xml)
at ChilkatCode.Parser.primaryExpression(Xml xml)
at ChilkatCode.Parser.unaryExpression(Xml xml)
at ChilkatCode.Parser.multiplicativeExpression(Xml xml)
at ChilkatCode.Parser.additiveExpression(Xml xml)
at ChilkatCode.Parser.relationalExpression(Xml xml)
at ChilkatCode.Parser.equalityExpression(Xml xml)
at ChilkatCode.Parser.andExpression(Xml xml)
at ChilkatCode.Parser.expression(Xml xml)
at ChilkatCode.Parser.declaration()
at ChilkatCode.Parser.statement()
at ChilkatCode.Parser.Chilkat()
at ChilkatCode.Parser.Parse()
at ChilkatCode.Compile.CompileForToolsIO(String srcCode, String langHashKey, StringBuilder sbHtmlOut)
Curl Command
curl -G -d "api_signature=%7B%7Bapi_signature%7D%7D"
-d "api_timestamp=%7B%7Bapi_timestamp%7D%7D"
-d "api_key=%7B%7BAPI%20Key%7D%7D"
https://app.shippingeasy.com/api/stores
Postman Collection Item JSON
{
"name": "Get Stores",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"// calculate timestamp",
"const timestamp = parseInt(Date.now() / 1000);",
"console.log(\"timestamp: \" + timestamp);",
"pm.variables.set(\"api_timestamp\", timestamp);",
"",
"// Set your API key and API secret as Postman environment variables, your key and secret are available at https://app.shippingeasy.com/settings/api_credentials",
"const apiKey = pm.environment.get(\"API Key\");",
"const apiSecret = pm.environment.get(\"API Secret\");",
"",
"// build signature string - https://shippingeasy.readme.io/docs/authentication-signing-requests#how-to-calculate-a-signature",
"const signatureString = pm.request.method + \"&\" +",
" pm.request.url.getPath() + \"&\" +",
" \"api_key=\" + apiKey + \"&\" +",
" \"api_timestamp=\" + timestamp;",
"console.log(\"signature string: \" + signatureString);",
"",
"// generate signature",
"const apiSignature = CryptoJS.HmacSHA256(signatureString, apiSecret).toString(CryptoJS.enc.Hex);",
"console.log(\"api request signature: \" + apiSignature);",
"pm.variables.set(\"api_signature\", apiSignature);"
]
}
}
],
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "app.shippingeasy.com/api/stores?api_signature={{api_signature}}&api_timestamp={{api_timestamp}}&api_key={{API Key}}",
"host": [
"app",
"shippingeasy",
"com"
],
"path": [
"api",
"stores"
],
"query": [
{
"key": "api_signature",
"value": "{{api_signature}}"
},
{
"key": "api_timestamp",
"value": "{{api_timestamp}}"
},
{
"key": "api_key",
"value": "{{API Key}}"
}
]
},
"description": "Get details on the stores / marketplaces (i.e. Shopify/BigCommerce/Amazon/etc) that you have integrated with ShippingEasy.\n\nThe Manual Order store is the default / built in store for your ShippingEasy account."
},
"response": [
]
}