A
A
AndyLC2021-07-17 06:51:36
go
AndyLC, 2021-07-17 06:51:36

How to create a POST request in Golang?

There is the following request:
curl -X POST " https://connector.b2b.ocs.ru/api/v2/content/batch " -H "accept: application/json" -H "X-API-Key: U7xrRnsXpT5LA#6Tnvcq ^VanG^Ppt" -H "Content-Type: application/json" -d "[\"1000459749\", \"1000459646\"]"
It needs to be translated to Go.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-07-17
@karabanov

Go HTTP client

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question