Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call HTTP Api #5

Open
farkascsanad opened this issue Oct 3, 2019 · 1 comment
Open

Call HTTP Api #5

farkascsanad opened this issue Oct 3, 2019 · 1 comment

Comments

@farkascsanad
Copy link

Hi

Is it possible to add a http request feature ? :)
Eg: I can write api that store all data in a database.
So we can create with google sheet api fancy spreadsheets or we can use qliksense,tablou or power bi to show progress even connect to dotabuff etc.
I only need a call url part in the script with the mmr, userid and if it possible the match id

Thanks

@wise-danya
Copy link

Hello.

You can access CreateHTTPRequestScriptVM or CreateHTTPRequest objects to send request only when a player is in a match
Link to usage example:

CreateHTTPRequest( "GET", "http://www.google.com" ):Send( function( result )
   print( "GET response:\n" )
   for k,v in pairs( result ) do
       print( string.format( "%s : %s\n", k, v ) )
   end
   print( "Done." )
end )

If your question is still relevant, let me know, basically I know how to implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants