Help me decode an old script (inexperienced)

I'm trying to understand an old .cs file, but having experience only in python im finding it difficult. more info in messages
23 Replies
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
ill send the entire file
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
im attempting to rewrite this in python, and im trying to figure out what is appended to the variable response and in what order
Thinker
Thinker3y ago
.Result thisisalright
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
thanks a lot, but im not sure how to print it or anything how do i find contents of a variable?
Thinker
Thinker3y ago
What are you actually trying to do?
RTXPower
RTXPower3y ago
You are using GetAsync so please await it
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
im trying to rewrite this but in python, and ive got most of it down but i have no understanding of c#
RTXPower
RTXPower3y ago
Same for ReadAsStringAsync
Thinker
Thinker3y ago
Well, this isn't a Python server catsip
RTXPower
RTXPower3y ago
$python
RTXPower
RTXPower3y ago
Here ya go
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
yes, but i need to understand the c# part of it
RTXPower
RTXPower3y ago
Oh so u dont understand the code?
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
correct i dont understand c# at all
RTXPower
RTXPower3y ago
Basically its doing a GET request to that endpoint and reads the content as string.
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
okay understood, thank you would you also be able to tell me what the .Result variable is?
RTXPower
RTXPower3y ago
.Result is used because the method isn't awaited. It just returns the result of the GET request But if awaited, result will return automatically
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
i was under the impression that it would be a POST request because i thought that this script uploaded files
RTXPower
RTXPower3y ago
post request would be SendAsync
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
would this be it? and if so, would you mind explaining what this is?
.gg/VIBEWOOD
.gg/VIBEWOODOP3y ago
im so sorry about this i literally havent a clue how c# works

Did you find this page helpful?