ERROR!
------------------- GenerateCode ----------------------
---- begin chilkat script ----
// This example assumes the Chilkat API to have been previously unlocked.
// See {{-global_unlock:::Global Unlock Sample-}} for sample code.
new Http http;
ckbool success;
call http.SetRequestHeader("Content","<>");
HttpResponse resp = http.QuickRequest("POST","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/comments/2941387470/restore.json");
if (http.LastMethodSuccess == ckfalse) {
println http.LastErrorText;
return;
}
println resp.StatusCode;
println resp.BodyStr;
delete resp;
---- end chilkat script ----
Ruby / Shopify / restore a comment
Back to Collection Items
require 'chilkat'
# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.
http = Chilkat::CkHttp.new()
ERROR: Non-existent Chilkat method: Http.SetRequestHeader
ERROR: Non-existent Chilkat method: Http.SetRequestHeader
ERROR: Entry not found: Http.QuickRequest
ERROR: CodeGen:
emitNewObject:
atgType: Http
varName: http
--emitNewObject
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
--CodeGen
ERROR: Non-existent Chilkat method: Http.QuickRequest
# resp is a CkHttpResponse
resp = http.QuickRequest("POST","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/comments/2941387470/restore.json")
ERROR: Entry not found: Http.LastMethodSuccess
ERROR: CodeGen:
emitNewObject:
atgType: Http
varName: http
--emitNewObject
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
--CodeGen
if (http.get_LastMethodSuccess() == false)
ERROR: Entry not found: Http.LastErrorText
ERROR: CodeGen:
emitNewObject:
atgType: Http
varName: http
--emitNewObject
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
failedToLoadClass: Http
failedToLoadClass: Http
getApiProperty:
Class not found
className: Http
--getApiProperty
--CodeGen
print http.get_LastErrorText().to_s() + "\n";
exit
end
print resp.get_StatusCode().to_s() + "\n";
print resp.bodyStr() + "\n";
Curl Command
curl -X POST
-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/comments/2941387470/restore.json
Postman Collection Item JSON
{
"name": "restore a comment",
"request": {
"method": "POST",
"header": [
{
"key": "Content",
"value": "<>"
}
],
"url": {
"raw": "{{baseUrl}}/admin/comments/2941387470/restore.json",
"host": [
"{{baseUrl}}"
],
"path": [
"admin",
"comments",
"2941387470",
"restore.json"
]
},
"description": "Restore a comment."
},
"response": [
]
}