Skip to content
This repository was archived by the owner on Aug 4, 2022. It is now read-only.
This repository was archived by the owner on Aug 4, 2022. It is now read-only.

Feature: Scripts provider #2

@ashsmith

Description

@ashsmith

Get: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/getscript
Create script: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/createscript
Update: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/updatescript
Delete: https://developer.bigcommerce.com/api-reference/store-management/scripts/scripts/deletescript

Example POST body for a source tag:

{
  "name": "Bootstrap",
  "description": "Build responsive websites",
  "src": "https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js",
  "auto_uninstall": true,
  "load_method": "default",
  "location": "footer",
  "visibility": "all_pages",
  "kind": "src"
}

Example POST body for a script

{
  "name": "Bootstrap",
  "description": "Build responsive websites",
  "html": "<script src=\\\"https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js\\\"></script>",
  "auto_uninstall": true,
  "load_method": "default",
  "location": "footer",
  "visibility": "all_pages",
  "kind": "script_tag"
}

Note not all fields are required

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions