LoginSignup
0
0

robloxでassistant その3

Posted at

概要

robloxでassistantやってみた。

質問

http getは、できますか

回答

はい、RobloxのHttpServiceクラスを使用してHTTP GETリクエストを送信することができます。以下は、GETリクエストを送信するための基本的なコード例です。

local HttpService = game:GetService("HttpService")
local url = "https://example.com/api/data" -- リクエストを送信するURL
local response = HttpService:GetAsync(url) -- GETリクエストを送信し、レスポンスを取得
print(response) -- レスポンスを出力

このコードでは、HttpService:GetAsync()メソッドを使用して指定したURLにGETリクエストを送信し、レスポンスを取得しています。
取得したレスポンスは、response変数に格納され、print()関数を使用して出力されます。
ただし、注意点として、HTTPリクエストは信頼できる第三者のプラットフォームにのみ送信するようにしてください。
また、セキュリティリスクを避けるために、信頼できるソースからのみリクエストを受け入れるようにしてください。
もし他に質問があれば、お気軽にどうぞ!

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0