Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Request body of POST

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
carlomagazoni
How do I cheat?
Reputation: 0

Joined: 01 Jan 2022
Posts: 3

PostPosted: Sat Jan 01, 2022 6:38 pm    Post subject: Request body of POST Reply with quote

Hello, everyone. I am coding a feature which should read/write something to Google Sheet table, I managed to make a simple GET request and get desired values, now I stuck in POST request. It requires some body of request.

It's example from "Test API" funtion in google sheets api documentation

Code:

curl --request PUT \
  '...spreadsheets/1NOZbjApvdpIpPRXUAQr6nRAnQuBMi5Zs452RhljDmzA/values/K9?valueInputOption=RAW&key=[YOUR_API_KEY]' \
  --header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"values":[[1]]}' \
  --compressed


Looking at celua.txt there is postURL(url, encodeddata) function. So the question is: how to create body of request in lua to make it works?
I have already searched for solution on forum and internet with no success(
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites