Java / Shopify / update a script tag
Back to Collection Items
import com.chilkatsoft.*;
public class ChilkatExample {
static {
try {
System.loadLibrary("chilkat");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}
public static void main(String argv[])
{
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkHttp http = new CkHttp();
boolean success;
http.SetRequestHeader("Content","<>");
CkHttpResponse resp = http.QuickRequest("PUT","httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/script_tags/108074126.json");
if (http.get_LastMethodSuccess() == false) {
System.out.println(http.lastErrorText());
return;
}
System.out.println(resp.get_StatusCode());
System.out.println(resp.bodyStr());
}
}
Curl Command
curl -X PUT
-H "Content: <>"
httpsDefaultParameterValue:DefaultParameterValue@DefaultParameterValue.myshopify.com/admin/script_tags/108074126.json
Postman Collection Item JSON
{
"name": "update a script tag",
"request": {
"method": "PUT",
"header": [
{
"key": "Content",
"value": "<>"
}
],
"url": {
"raw": "{{baseUrl}}/admin/script_tags/108074126.json",
"host": [
"{{baseUrl}}"
],
"path": [
"admin",
"script_tags",
"108074126.json"
]
},
"description": "Update a script tag."
},
"response": [
]
}