From f8acbf0c036dade6bd3a7f4a34c4b54a03630752 Mon Sep 17 00:00:00 2001 From: Leonardo Domingues Date: Fri, 5 Nov 2021 18:09:09 -0300 Subject: [PATCH] =?UTF-8?q?Adi=C3=A7=C3=A3o=20da=20fun=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/dataapi/lib.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/dataapi/lib.go b/api/dataapi/lib.go index ab5815b..aae3cc4 100644 --- a/api/dataapi/lib.go +++ b/api/dataapi/lib.go @@ -43,3 +43,18 @@ func NewCli(apikey string) *Cli { ret.Httpcli.SetBasePath("https://dataapi.digitalcircle.com.br") return ret } + +func LCR_Create() { + c := NewCli("RnJpIDA1IE5vdiAyMDIxIDExOjE1OjIyIEFNIFVUQwo") + + _, err := c.Do(&DataAPIRequest{ + Col: "LCR_Bot", + Op: CREATE, + Data: map[string]interface{}{ + "Registro": "1", + }, + }) + if err != nil { + panic(err) + } +}