Method: variables.get

ชื่อเต็ม: accounts.containers.workspaces.variables.get

รับตัวแปร GTM

คำขอ HTTP

GET https://tagmanager.googleapis.com/tagmanager/v2/{path}

พารามิเตอร์เส้นทาง

พารามิเตอร์
path

string

เส้นทางที่เกี่ยวข้องของ API ของตัวแปร GTM โดยจะมีรูปแบบเป็น accounts/{account}/containers/{container}/workspaces/{workspace}/variables/{variable}

เนื้อหาของคำขอ

เนื้อหาของคำขอต้องว่างเปล่า

เนื้อหาการตอบกลับ

หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Variable

ขอบเขตการให้สิทธิ์

ต้องใช้ขอบเขต OAuth ต่อไปนี้

  • https://www.googleapis.com/auth/tagmanager.edit.containers
  • https://www.googleapis.com/auth/tagmanager.readonly

ดูข้อมูลเพิ่มเติมได้ที่ OAuth 2.0 Overview