Package: roblox-cloud-api
Roblox Open Cloud API in PythonRoblox Open Cloud is an addition to the roblox developer workspace that allows automation of workflows to improve the efficiency of content creation and adds support for your needs to develop games on Roblox.Open Cloud allows you to build your own tools and applications to access your roblox resources through web apis. Open Cloud is accessed through API keys or OAuth applications, and permissions can be set on api keys and authentications to determine the accessibility level of those authenticated applications and utilized api keys.Additionally, webhooks can also be utilized to receive real-time notifications on third-party tools or custom endpoints.InstallationTo install with pip, simply run theoneof the following in a command prompt:pip install roblox-cloud-apipip3 install roblox-cloud-apior if those do not work,oneof the following;py -m pip install roblox-cloud-apipython -m pip install roblox-cloud-apipy3 -m pip install roblox-cloud-apipython3 -m pip install roblox-cloud-apicovers the scenarios where the command prompt python keyword differsYou can then import the package viaimportroblox_open_cloudUsageUse python's autocomplete to see what endpoints allow both or either USER_ACCOUNTs and API_KEYs.Importing essentialsfromroblox_open_cloudimport(API_KEY,# api keysUSER_ACCOUNT,# roblox accountsKeyAPI,# validate api keysUserAPI,# validate roblox accountsOpenCloudAPI# open cloud api)Utilizing API Keys# Create an api key instance.# Used to access resources.api_key=API_KEY(api_key="",# api key credentialcreator_id="",# userId / groupId that owns the api key)# check if the api key is valid, only need to do once.try:is_key_valid=KeyAPI.is_api_key_valid(api_key)exceptExceptionase:print("Failed to check API_KEY validity with KeyAPI.")raisee# if the request itself failed, tell us whyifnotis_key_valid:raiseException("API Key is invalid.")# now the key has been validated, we can do stuff with it.# request to the MessagingService api and post a message# raises an Exception if failedtry:OpenCloudAPI.MessagingService.publish_async(api_key,# api_key000000,# universe id"topic",# topic"message"# message)print("Published message using API Key!")exceptExceptionase:print("Failed MessagingService message publish!")print(e)Utilizing Roblox Accounts# Create an api key instance.# Used to access resources.account=USER_ACCOUNT(cookie="",# cookieuser_id="",# userId)# check if the account is valid, only need to do once.try:is_account_valid=UserAPI.is_user_account_valid(account)exceptExceptionase:print("Failed to check USER_ACCOUNT validity with UserAPI.")raisee# if the request itself failed, tell us whyifnotis_account_valid:raiseException(f"User Account is invalid.")# now the user account has been validated, we can do stuff with it.# request to the MessagingService api and post a message# raises an Exception if failedtry:OpenCloudAPI.MessagingService.publish_async(account,# user account000000,# universe id"topic",# topic"message"# message)print("Published message using User Account!")exceptExceptionase:print("Failed MessagingService message publish!")print(e)# tells us the reason (Exceptions are raised based on webpoint responses.)LinksRoblox Open Cloud Credentials Page:https://create.roblox.com/dashboard/credentialsRoblox Open Cloud Overview Page:https://create.roblox.com/docs/cloud/open-cloudRoblox Open Cloud OAuth Page:https://create.roblox.com/docs/cloud/open-cloud/oauth2-overviewRoblox Open Cloud Webhooks Page:https://create.roblox.com/docs/cloud/webhooks/webhook-notificationsTESTPyPi Package Pagehttps://test.pypi.org/project/roblox-cloud-api/LIVEPyPi Package Pagehttps://www.pypi.org/project/roblox-cloud-api/CreditsPackage by SPOOK_EXEhttps://github.com/SPOOKEXEhttps://www.roblox.com/users/1041213550/profileAnamius - 'rbxmk' for parsing roblox fileshttps://github.com/Anaminus/rbxmkAdditional DocumentationView Here (Local)View Here (GitHub)