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
ill send the entire file
im attempting to rewrite this in python, and im trying to figure out what is appended to the variable
response
and in what order.Result
thanks a lot, but im not sure how to print it or anything
how do i find contents of a variable?
What are you actually trying to do?
You are using GetAsync so please await it
im trying to rewrite this but in python, and ive got most of it down but i have no understanding of c#
Same for ReadAsStringAsync
Well, this isn't a Python server
$python
Here ya go
yes, but i need to understand the c# part of it
Oh so u dont understand the code?
correct
i dont understand c# at all
Basically its doing a GET request to that endpoint and reads the content as string.
okay understood, thank you
would you also be able to tell me what the
.Result
variable is?.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
i was under the impression that it would be a POST request because i thought that this script uploaded files
post request would be SendAsync
would this be it? and if so, would you mind explaining what this is?
im so sorry about this i literally havent a clue how c# works