vrchatapi-async 1.20.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vrchatapi_async-1.20.8/LICENSE +21 -0
- vrchatapi_async-1.20.8/PKG-INFO +183 -0
- vrchatapi_async-1.20.8/README.md +151 -0
- vrchatapi_async-1.20.8/pyproject.toml +6 -0
- vrchatapi_async-1.20.8/setup.cfg +7 -0
- vrchatapi_async-1.20.8/setup.py +351 -0
- vrchatapi_async-1.20.8/tests/test_async_sdk.py +301 -0
- vrchatapi_async-1.20.8/tests/test_websocket.py +464 -0
- vrchatapi_async-1.20.8/vrchatapi/__init__.py +742 -0
- vrchatapi_async-1.20.8/vrchatapi/api/__init__.py +23 -0
- vrchatapi_async-1.20.8/vrchatapi/api/authentication_api.py +6253 -0
- vrchatapi_async-1.20.8/vrchatapi/api/avatars_api.py +4234 -0
- vrchatapi_async-1.20.8/vrchatapi/api/calendar_api.py +4090 -0
- vrchatapi_async-1.20.8/vrchatapi/api/economy_api.py +11547 -0
- vrchatapi_async-1.20.8/vrchatapi/api/favorites_api.py +2368 -0
- vrchatapi_async-1.20.8/vrchatapi/api/files_api.py +6109 -0
- vrchatapi_async-1.20.8/vrchatapi/api/friends_api.py +1708 -0
- vrchatapi_async-1.20.8/vrchatapi/api/groups_api.py +15085 -0
- vrchatapi_async-1.20.8/vrchatapi/api/instances_api.py +1754 -0
- vrchatapi_async-1.20.8/vrchatapi/api/inventory_api.py +4333 -0
- vrchatapi_async-1.20.8/vrchatapi/api/invite_api.py +3337 -0
- vrchatapi_async-1.20.8/vrchatapi/api/jams_api.py +1446 -0
- vrchatapi_async-1.20.8/vrchatapi/api/miscellaneous_api.py +2384 -0
- vrchatapi_async-1.20.8/vrchatapi/api/notifications_api.py +3624 -0
- vrchatapi_async-1.20.8/vrchatapi/api/playermoderation_api.py +1127 -0
- vrchatapi_async-1.20.8/vrchatapi/api/prints_api.py +1478 -0
- vrchatapi_async-1.20.8/vrchatapi/api/props_api.py +2269 -0
- vrchatapi_async-1.20.8/vrchatapi/api/users_api.py +7894 -0
- vrchatapi_async-1.20.8/vrchatapi/api/worlds_api.py +6153 -0
- vrchatapi_async-1.20.8/vrchatapi/api_client.py +865 -0
- vrchatapi_async-1.20.8/vrchatapi/api_response.py +21 -0
- vrchatapi_async-1.20.8/vrchatapi/configuration.py +686 -0
- vrchatapi_async-1.20.8/vrchatapi/exceptions.py +218 -0
- vrchatapi_async-1.20.8/vrchatapi/models/__init__.py +345 -0
- vrchatapi_async-1.20.8/vrchatapi/models/account_deletion_log.py +253 -0
- vrchatapi_async-1.20.8/vrchatapi/models/add_favorite_request.py +246 -0
- vrchatapi_async-1.20.8/vrchatapi/models/add_group_gallery_image_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/admin_asset_bundle.py +337 -0
- vrchatapi_async-1.20.8/vrchatapi/models/admin_unity_package.py +261 -0
- vrchatapi_async-1.20.8/vrchatapi/models/age_verification_status.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/agreement.py +280 -0
- vrchatapi_async-1.20.8/vrchatapi/models/agreement_code.py +36 -0
- vrchatapi_async-1.20.8/vrchatapi/models/agreement_request.py +256 -0
- vrchatapi_async-1.20.8/vrchatapi/models/agreement_status.py +261 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config.py +1299 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_access_logs_urls.py +258 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_announcement.py +217 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_audio_config.py +311 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_avatar_perf_limiter.py +293 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants.py +262 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_groups.py +306 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instance.py +238 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbrackets.py +262 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbracketscrowded.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbracketsfew.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_instancepopulationbracketsmany.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_constants_language.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_download_url_list.py +258 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_events.py +314 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_ios_version.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_min_supported_client_build_number.py +348 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_config_offline_analysis.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/api_health.py +248 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar.py +463 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_moderation.py +249 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_moderation_created.py +248 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_moderation_type.py +36 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_performance.py +265 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_published_listings_inner.py +271 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_style.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_styles.py +231 -0
- vrchatapi_async-1.20.8/vrchatapi/models/avatar_unity_package_url_object.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/badge.py +308 -0
- vrchatapi_async-1.20.8/vrchatapi/models/balance.py +247 -0
- vrchatapi_async-1.20.8/vrchatapi/models/ban_group_member_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/boop_request.py +250 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_day_of_week.py +42 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event.py +475 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_access.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_category.py +48 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_discovery.py +247 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_discovery_inclusion.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_discovery_scope.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_frequency.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_occurrence_kind.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_platform.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_recurrence.py +261 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_recurrence_end.py +246 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_recurrence_end_type.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/calendar_event_user_interest.py +251 -0
- vrchatapi_async-1.20.8/vrchatapi/models/change_user_tags_request.py +212 -0
- vrchatapi_async-1.20.8/vrchatapi/models/change_world_tags_request.py +212 -0
- vrchatapi_async-1.20.8/vrchatapi/models/content_filter.py +40 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_avatar_moderation_request.py +243 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_avatar_request.py +324 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_calendar_event_request.py +385 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_file_request.py +251 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_file_version_request.py +259 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_group_announcement_request.py +253 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_group_gallery_request.py +297 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_group_invite_request.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_group_post_request.py +267 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_group_request.py +295 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_group_role_request.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_instance_request.py +384 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_jam_submission_request.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_listing_request.py +285 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_product_request.py +270 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_prop_request.py +308 -0
- vrchatapi_async-1.20.8/vrchatapi/models/create_world_request.py +322 -0
- vrchatapi_async-1.20.8/vrchatapi/models/current_user.py +909 -0
- vrchatapi_async-1.20.8/vrchatapi/models/current_user_platform_history_inner.py +245 -0
- vrchatapi_async-1.20.8/vrchatapi/models/current_user_presence.py +379 -0
- vrchatapi_async-1.20.8/vrchatapi/models/decline_group_invite_request.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/developer_type.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/disable2_fa_result.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/discord_details.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/dynamic_content_row.py +276 -0
- vrchatapi_async-1.20.8/vrchatapi/models/earnings_metrics.py +248 -0
- vrchatapi_async-1.20.8/vrchatapi/models/earnings_metrics_totals.py +267 -0
- vrchatapi_async-1.20.8/vrchatapi/models/economy_account.py +360 -0
- vrchatapi_async-1.20.8/vrchatapi/models/economy_balances.py +221 -0
- vrchatapi_async-1.20.8/vrchatapi/models/economy_payout.py +385 -0
- vrchatapi_async-1.20.8/vrchatapi/models/economy_payout_eligibility.py +263 -0
- vrchatapi_async-1.20.8/vrchatapi/models/economy_payout_list.py +219 -0
- vrchatapi_async-1.20.8/vrchatapi/models/economy_payout_status.py +295 -0
- vrchatapi_async-1.20.8/vrchatapi/models/equip_inventory_item_request.py +235 -0
- vrchatapi_async-1.20.8/vrchatapi/models/error.py +215 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorite.py +251 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorite_group.py +278 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorite_group_limits.py +249 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorite_group_visibility.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorite_limits.py +265 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorite_type.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/favorited_world.py +441 -0
- vrchatapi_async-1.20.8/vrchatapi/models/feedback.py +331 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file.py +325 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_analysis.py +281 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_analysis_avatar_stats.py +575 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_data.py +279 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_status.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_upload_url.py +212 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_version.py +254 -0
- vrchatapi_async-1.20.8/vrchatapi/models/file_version_upload_status.py +269 -0
- vrchatapi_async-1.20.8/vrchatapi/models/finish_file_data_upload_request.py +248 -0
- vrchatapi_async-1.20.8/vrchatapi/models/follow_calendar_event_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/friend_status.py +250 -0
- vrchatapi_async-1.20.8/vrchatapi/models/get_group_posts200_response.py +219 -0
- vrchatapi_async-1.20.8/vrchatapi/models/get_user_group_instances200_response.py +248 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group.py +514 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_access_type.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_announcement.py +315 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_audit_log_entry.py +287 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_gallery.py +319 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_gallery_file_order.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_gallery_file_order_request.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_gallery_image.py +301 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_instance.py +257 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_join_request_action.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_join_state.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_member.py +415 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_member_limited_user.py +290 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_member_status.py +41 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_my_member.py +399 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_permission.py +260 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_permissions.py +63 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_post.py +317 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_post_visibility.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_privacy.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_role.py +309 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_role_template.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_role_template_values.py +254 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_role_template_values_roles.py +253 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_search_sort.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_transferable.py +215 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_transferable_requirements.py +266 -0
- vrchatapi_async-1.20.8/vrchatapi/models/group_user_visibility.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/image_animation_style.py +62 -0
- vrchatapi_async-1.20.8/vrchatapi/models/image_loop_style.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/image_mask.py +41 -0
- vrchatapi_async-1.20.8/vrchatapi/models/image_purpose.py +46 -0
- vrchatapi_async-1.20.8/vrchatapi/models/info_push.py +306 -0
- vrchatapi_async-1.20.8/vrchatapi/models/info_push_data.py +288 -0
- vrchatapi_async-1.20.8/vrchatapi/models/info_push_data_article.py +215 -0
- vrchatapi_async-1.20.8/vrchatapi/models/info_push_data_article_content.py +251 -0
- vrchatapi_async-1.20.8/vrchatapi/models/info_push_data_clickable.py +224 -0
- vrchatapi_async-1.20.8/vrchatapi/models/instance.py +597 -0
- vrchatapi_async-1.20.8/vrchatapi/models/instance_content_settings.py +236 -0
- vrchatapi_async-1.20.8/vrchatapi/models/instance_platforms.py +222 -0
- vrchatapi_async-1.20.8/vrchatapi/models/instance_region.py +40 -0
- vrchatapi_async-1.20.8/vrchatapi/models/instance_short_name_response.py +248 -0
- vrchatapi_async-1.20.8/vrchatapi/models/instance_type.py +40 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory.py +247 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_consumption_results.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_default_attributes_value.py +243 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_default_attributes_value_validator.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_drop.py +331 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_equip_slot.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_flag.py +43 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_item.py +420 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_item_type.py +42 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_metadata.py +287 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_notification_details.py +244 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_spawn.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_template.py +351 -0
- vrchatapi_async-1.20.8/vrchatapi/models/inventory_user_attributes.py +250 -0
- vrchatapi_async-1.20.8/vrchatapi/models/invite_message.py +276 -0
- vrchatapi_async-1.20.8/vrchatapi/models/invite_message_type.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/invite_request.py +243 -0
- vrchatapi_async-1.20.8/vrchatapi/models/invite_response.py +235 -0
- vrchatapi_async-1.20.8/vrchatapi/models/jam.py +302 -0
- vrchatapi_async-1.20.8/vrchatapi/models/jam_state_change_dates.py +276 -0
- vrchatapi_async-1.20.8/vrchatapi/models/jam_submission.py +275 -0
- vrchatapi_async-1.20.8/vrchatapi/models/join_group_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/license.py +261 -0
- vrchatapi_async-1.20.8/vrchatapi/models/license_action.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/license_group.py +235 -0
- vrchatapi_async-1.20.8/vrchatapi/models/license_type.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_group.py +377 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_unity_package.py +251 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_user_friend.py +399 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_user_groups.py +386 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_user_instance.py +430 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_user_search.py +395 -0
- vrchatapi_async-1.20.8/vrchatapi/models/limited_world.py +410 -0
- vrchatapi_async-1.20.8/vrchatapi/models/mime_type.py +50 -0
- vrchatapi_async-1.20.8/vrchatapi/models/model_print.py +299 -0
- vrchatapi_async-1.20.8/vrchatapi/models/moderate_user_request.py +217 -0
- vrchatapi_async-1.20.8/vrchatapi/models/moderation_report.py +296 -0
- vrchatapi_async-1.20.8/vrchatapi/models/mutual_friend.py +302 -0
- vrchatapi_async-1.20.8/vrchatapi/models/mutuals.py +217 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification.py +283 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_invite.py +250 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_invite_response.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_request_invite.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_request_invite_response.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_detail_vote_to_kick.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_type.py +43 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_v2.py +466 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_v2_details_boop.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_v2_response.py +259 -0
- vrchatapi_async-1.20.8/vrchatapi/models/notification_v2_type.py +58 -0
- vrchatapi_async-1.20.8/vrchatapi/models/ok_status.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/ok_status2.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/order_option.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/order_option_short.py +37 -0
- vrchatapi_async-1.20.8/vrchatapi/models/paginated_calendar_event_list.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/paginated_group_audit_log_entry_list.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/paginated_moderation_report_list.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/past_display_name.py +241 -0
- vrchatapi_async-1.20.8/vrchatapi/models/pending2_fa_result.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/performance_limiter_info.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/performance_ratings.py +41 -0
- vrchatapi_async-1.20.8/vrchatapi/models/permission.py +280 -0
- vrchatapi_async-1.20.8/vrchatapi/models/permission_data.py +258 -0
- vrchatapi_async-1.20.8/vrchatapi/models/platform_build_info.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/player_moderation.py +276 -0
- vrchatapi_async-1.20.8/vrchatapi/models/player_moderation_type.py +44 -0
- vrchatapi_async-1.20.8/vrchatapi/models/print_files.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/private_profile.py +267 -0
- vrchatapi_async-1.20.8/vrchatapi/models/private_profile_activity.py +292 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product.py +389 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_listing.py +538 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_listing_type.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_listing_variant.py +272 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_purchase.py +571 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_history.py +256 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_location_type.py +46 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_product.py +269 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_purchase_context.py +250 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_purchase_record.py +312 -0
- vrchatapi_async-1.20.8/vrchatapi/models/product_type.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/profile_represented_group.py +262 -0
- vrchatapi_async-1.20.8/vrchatapi/models/prop.py +358 -0
- vrchatapi_async-1.20.8/vrchatapi/models/prop_publish_status.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/prop_unity_package.py +269 -0
- vrchatapi_async-1.20.8/vrchatapi/models/public_profile.py +398 -0
- vrchatapi_async-1.20.8/vrchatapi/models/purchase_context_data.py +251 -0
- vrchatapi_async-1.20.8/vrchatapi/models/purchase_product_listing_request.py +281 -0
- vrchatapi_async-1.20.8/vrchatapi/models/region.py +42 -0
- vrchatapi_async-1.20.8/vrchatapi/models/register_user_account_request.py +278 -0
- vrchatapi_async-1.20.8/vrchatapi/models/release_status.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/report_category.py +226 -0
- vrchatapi_async-1.20.8/vrchatapi/models/report_reason.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/represented_group.py +348 -0
- vrchatapi_async-1.20.8/vrchatapi/models/request_invite_request.py +235 -0
- vrchatapi_async-1.20.8/vrchatapi/models/respond_group_join_request.py +217 -0
- vrchatapi_async-1.20.8/vrchatapi/models/respond_notification_v2_request.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/response.py +217 -0
- vrchatapi_async-1.20.8/vrchatapi/models/reward_badge.py +308 -0
- vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption.py +220 -0
- vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption_data.py +224 -0
- vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption_request.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/reward_redemption_result.py +250 -0
- vrchatapi_async-1.20.8/vrchatapi/models/search_group_members200_response.py +224 -0
- vrchatapi_async-1.20.8/vrchatapi/models/seller_eligibility.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/sent_notification.py +278 -0
- vrchatapi_async-1.20.8/vrchatapi/models/service_queue_stats.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/service_status.py +281 -0
- vrchatapi_async-1.20.8/vrchatapi/models/share_inventory_item_direct_request.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/sort_option.py +53 -0
- vrchatapi_async-1.20.8/vrchatapi/models/sort_option_product_purchase.py +36 -0
- vrchatapi_async-1.20.8/vrchatapi/models/store.py +372 -0
- vrchatapi_async-1.20.8/vrchatapi/models/store_context.py +249 -0
- vrchatapi_async-1.20.8/vrchatapi/models/store_shelf.py +304 -0
- vrchatapi_async-1.20.8/vrchatapi/models/store_type.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/store_view.py +40 -0
- vrchatapi_async-1.20.8/vrchatapi/models/submit_moderation_report_request.py +263 -0
- vrchatapi_async-1.20.8/vrchatapi/models/submit_moderation_report_request_details.py +283 -0
- vrchatapi_async-1.20.8/vrchatapi/models/subscription.py +301 -0
- vrchatapi_async-1.20.8/vrchatapi/models/subscription_period.py +40 -0
- vrchatapi_async-1.20.8/vrchatapi/models/success.py +215 -0
- vrchatapi_async-1.20.8/vrchatapi/models/success_flag.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/tilia_kyc.py +246 -0
- vrchatapi_async-1.20.8/vrchatapi/models/tilia_status.py +259 -0
- vrchatapi_async-1.20.8/vrchatapi/models/tilia_tos.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/token_bundle.py +286 -0
- vrchatapi_async-1.20.8/vrchatapi/models/transaction.py +322 -0
- vrchatapi_async-1.20.8/vrchatapi/models/transaction_agreement.py +353 -0
- vrchatapi_async-1.20.8/vrchatapi/models/transaction_status.py +39 -0
- vrchatapi_async-1.20.8/vrchatapi/models/transaction_steam_info.py +271 -0
- vrchatapi_async-1.20.8/vrchatapi/models/transaction_steam_wallet_info.py +227 -0
- vrchatapi_async-1.20.8/vrchatapi/models/transfer_group_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/tutorial_status.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/two_factor_auth_code.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/two_factor_email_code.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/two_factor_recovery_codes.py +247 -0
- vrchatapi_async-1.20.8/vrchatapi/models/two_factor_recovery_codes_otp_inner.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/unity_package.py +360 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_asset_review_notes_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_avatar_request.py +293 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_calendar_event_request.py +365 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_favorite_group_request.py +246 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_group_gallery_request.py +297 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_group_member_request.py +256 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_group_representation_request.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_group_request.py +300 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_group_role_request.py +255 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_inventory_item_request.py +254 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_invite_message_request.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_listing_request.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_product_request.py +261 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_prop_request.py +303 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_tilia_tos_request.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_user_badge_request.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_user_note_request.py +239 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_user_request.py +358 -0
- vrchatapi_async-1.20.8/vrchatapi/models/update_world_request.py +317 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user.py +549 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_credits_eligible.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_exists.py +242 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_note.py +273 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_note_target_user.py +277 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_state.py +38 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_status.py +40 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_subscription.py +330 -0
- vrchatapi_async-1.20.8/vrchatapi/models/user_subscription_eligible.py +274 -0
- vrchatapi_async-1.20.8/vrchatapi/models/verify2_fa_email_code_result.py +211 -0
- vrchatapi_async-1.20.8/vrchatapi/models/verify2_fa_result.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/verify_auth_token_result.py +217 -0
- vrchatapi_async-1.20.8/vrchatapi/models/world.py +459 -0
- vrchatapi_async-1.20.8/vrchatapi/models/world_metadata.py +216 -0
- vrchatapi_async-1.20.8/vrchatapi/models/world_publish_status.py +234 -0
- vrchatapi_async-1.20.8/vrchatapi/py.typed +0 -0
- vrchatapi_async-1.20.8/vrchatapi/rest.py +303 -0
- vrchatapi_async-1.20.8/vrchatapi/websocket.py +652 -0
- vrchatapi_async-1.20.8/vrchatapi_async.egg-info/PKG-INFO +183 -0
- vrchatapi_async-1.20.8/vrchatapi_async.egg-info/SOURCES.txt +370 -0
- vrchatapi_async-1.20.8/vrchatapi_async.egg-info/dependency_links.txt +1 -0
- vrchatapi_async-1.20.8/vrchatapi_async.egg-info/requires.txt +5 -0
- vrchatapi_async-1.20.8/vrchatapi_async.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Owners of GitHub organisation "vrchatapi" and individual contributors.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vrchatapi-async
|
|
3
|
+
Version: 1.20.8
|
|
4
|
+
Summary: VRChat API Library for Python (async version)
|
|
5
|
+
Home-page: https://github.com/hi94740/vrchatapi-python-async
|
|
6
|
+
Author: hi94740
|
|
7
|
+
Author-email: hi94740@qq.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Keywords: vrchat,vrchatapi,vrc
|
|
10
|
+
Requires-Python: >=3.10
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
14
|
+
Requires-Dist: aiohttp>=3.13.5
|
|
15
|
+
Requires-Dist: aiohttp-retry>=2.8.3
|
|
16
|
+
Requires-Dist: pydantic>=2.11
|
|
17
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: author-email
|
|
20
|
+
Dynamic: description
|
|
21
|
+
Dynamic: description-content-type
|
|
22
|
+
Dynamic: home-page
|
|
23
|
+
Dynamic: keywords
|
|
24
|
+
Dynamic: license
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
Dynamic: requires-dist
|
|
27
|
+
Dynamic: requires-python
|
|
28
|
+
Dynamic: summary
|
|
29
|
+
|
|
30
|
+

|
|
31
|
+
|
|
32
|
+
# VRChat API Library for Python (async)
|
|
33
|
+
|
|
34
|
+
A Python client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).
|
|
35
|
+
|
|
36
|
+
This is an **asynchronous** (asyncio + aiohttp) adaptation of [VRChatAPI-Python](https://github.com/vrchatapi/vrchatapi-python). All API
|
|
37
|
+
methods are coroutines and must be awaited.
|
|
38
|
+
|
|
39
|
+
## Disclaimer
|
|
40
|
+
|
|
41
|
+
This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.
|
|
42
|
+
|
|
43
|
+
> Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:
|
|
44
|
+
> * We do not provide documentation or support for the API.
|
|
45
|
+
> * Do not make queries to the API more than once per 60 seconds.
|
|
46
|
+
> * Abuse of the API may result in account termination.
|
|
47
|
+
> * Access to API endpoints may break at any given time, with no warning.
|
|
48
|
+
|
|
49
|
+
As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.
|
|
50
|
+
|
|
51
|
+
## Getting Started
|
|
52
|
+
|
|
53
|
+
First add the package to to your project:
|
|
54
|
+
```bash
|
|
55
|
+
pip install vrchatapi-async
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Below is an example on how to login to the API and fetch your own user information.
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
import asyncio
|
|
62
|
+
|
|
63
|
+
# Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
|
|
64
|
+
import vrchatapi
|
|
65
|
+
from vrchatapi.api import authentication_api
|
|
66
|
+
from vrchatapi.exceptions import UnauthorizedException
|
|
67
|
+
from vrchatapi.models.two_factor_auth_code import TwoFactorAuthCode
|
|
68
|
+
from vrchatapi.models.two_factor_email_code import TwoFactorEmailCode
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
async def main():
|
|
72
|
+
configuration = vrchatapi.Configuration(
|
|
73
|
+
username = 'username',
|
|
74
|
+
password = 'password',
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
# Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
|
|
78
|
+
# Here we enter a context of the API Client and instantiate the Authentication API which is required for logging in.
|
|
79
|
+
|
|
80
|
+
# Enter a context with an instance of the API client
|
|
81
|
+
async with vrchatapi.ApiClient(configuration) as api_client:
|
|
82
|
+
# Set our User-Agent as per VRChat Usage Policy
|
|
83
|
+
api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
|
|
84
|
+
|
|
85
|
+
# Instantiate instances of API classes
|
|
86
|
+
auth_api = authentication_api.AuthenticationApi(api_client)
|
|
87
|
+
|
|
88
|
+
try:
|
|
89
|
+
# Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
|
|
90
|
+
current_user = await auth_api.get_current_user()
|
|
91
|
+
except UnauthorizedException as e:
|
|
92
|
+
if e.status == 200:
|
|
93
|
+
if "Email 2 Factor Authentication" in e.reason:
|
|
94
|
+
# Step 3.5. Calling email verify2fa if the account has 2FA disabled
|
|
95
|
+
await auth_api.verify2_fa_email_code(two_factor_email_code=TwoFactorEmailCode(input("Email 2FA Code: ")))
|
|
96
|
+
elif "2 Factor Authentication" in e.reason:
|
|
97
|
+
# Step 3.5. Calling verify2fa if the account has 2FA enabled
|
|
98
|
+
await auth_api.verify2_fa(two_factor_auth_code=TwoFactorAuthCode(input("2FA Code: ")))
|
|
99
|
+
current_user = await auth_api.get_current_user()
|
|
100
|
+
else:
|
|
101
|
+
print("Exception when calling API: %s
|
|
102
|
+
", e)
|
|
103
|
+
except vrchatapi.ApiException as e:
|
|
104
|
+
print("Exception when calling API: %s
|
|
105
|
+
", e)
|
|
106
|
+
|
|
107
|
+
print("Logged in as:", current_user.display_name)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
if __name__ == "__main__":
|
|
111
|
+
asyncio.run(main())
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
See [Examples](examples/README.md) for more example usage on getting started.
|
|
115
|
+
|
|
116
|
+
## Async API notes
|
|
117
|
+
|
|
118
|
+
Compared to [the synchronous SDK](https://github.com/vrchatapi/vrchatapi-python), this version changes the calling convention:
|
|
119
|
+
|
|
120
|
+
- Every API method (`foo`, `foo_with_http_info`, `foo_without_preload_content`)
|
|
121
|
+
is an `async def` coroutine and must be awaited.
|
|
122
|
+
- `ApiClient` is used as an async context manager (`async with ... as api_client`).
|
|
123
|
+
- The `async_req` parameter and the thread-pool based `async_req=True` usage are
|
|
124
|
+
removed; calls are natively asynchronous.
|
|
125
|
+
- `foo_with_http_info()` returns an `ApiResponse` object (`status_code`,
|
|
126
|
+
`headers`, `data`, `raw_data`) instead of a `(data, status, headers)` tuple.
|
|
127
|
+
- `foo_without_preload_content()` returns the raw aiohttp response for
|
|
128
|
+
streaming; the legacy `_preload_content=False` parameter is removed.
|
|
129
|
+
- The session `CookieJar`, the readable 2FA errors
|
|
130
|
+
(`UnauthorizedException` with status 200), the URL-encoded basic auth, the
|
|
131
|
+
`~()` safe path-parameter charset and the lowercase boolean query parameters
|
|
132
|
+
behave exactly like the synchronous SDK.
|
|
133
|
+
|
|
134
|
+
## Contributing
|
|
135
|
+
|
|
136
|
+
Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
|
|
137
|
+
|
|
138
|
+
## Websocket (Pipeline) API
|
|
139
|
+
|
|
140
|
+
The SDK also ships a hand-written async client for VRChat's real-time
|
|
141
|
+
WebSocket (Pipeline) API (`wss://pipeline.vrchat.cloud`), which pushes invites,
|
|
142
|
+
friend requests, friend online/offline events, user and group updates to the
|
|
143
|
+
authenticated client. The connection is receive-only; every message's
|
|
144
|
+
double-encoded `content` field is automatically unpacked into a plain dict.
|
|
145
|
+
|
|
146
|
+
```python
|
|
147
|
+
import asyncio
|
|
148
|
+
|
|
149
|
+
import vrchatapi
|
|
150
|
+
from vrchatapi.api import authentication_api
|
|
151
|
+
from vrchatapi.websocket import VRChatWebSocket
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
async def main():
|
|
155
|
+
configuration = vrchatapi.Configuration(username="username", password="password")
|
|
156
|
+
async with vrchatapi.ApiClient(configuration) as api_client:
|
|
157
|
+
api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
|
|
158
|
+
await authentication_api.AuthenticationApi(api_client).get_current_user()
|
|
159
|
+
|
|
160
|
+
# Reads the auth cookie + User-Agent from the logged-in client.
|
|
161
|
+
ws = VRChatWebSocket.from_client(api_client)
|
|
162
|
+
|
|
163
|
+
@ws.on("friend-online")
|
|
164
|
+
async def on_friend_online(event):
|
|
165
|
+
print("online:", event.content["user"]["displayName"])
|
|
166
|
+
|
|
167
|
+
# Or consume the same stream as an async iterator:
|
|
168
|
+
# async for event in ws:
|
|
169
|
+
# print(event.type, event.content)
|
|
170
|
+
|
|
171
|
+
await ws.run() # blocks; reconnects automatically by default
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
`VRChatWebSocket` supports callback registration (`ws.on("friend-online", ...)`
|
|
175
|
+
/ `@ws.on(...)`, a catch-all `ws.on_event(...)`), an async iterator over the
|
|
176
|
+
same event stream, error/connect/disconnect/reconnect hooks, automatic
|
|
177
|
+
reconnection with exponential backoff (`auto_reconnect=False` disables it), and
|
|
178
|
+
a configurable application-level heartbeat (default 30s;
|
|
179
|
+
`heartbeat_interval=None` disables it). See
|
|
180
|
+
[examples/examples-source/websocket.py](examples/examples-source/websocket.py)
|
|
181
|
+
and the [Websocket API reference](https://vrchat.community/websocket) for
|
|
182
|
+
details.
|
|
183
|
+
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# VRChat API Library for Python (async)
|
|
4
|
+
|
|
5
|
+
A Python client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).
|
|
6
|
+
|
|
7
|
+
This is an **asynchronous** (asyncio + aiohttp) adaptation of [VRChatAPI-Python](https://github.com/vrchatapi/vrchatapi-python). All API
|
|
8
|
+
methods are coroutines and must be awaited.
|
|
9
|
+
|
|
10
|
+
## Disclaimer
|
|
11
|
+
|
|
12
|
+
This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.
|
|
13
|
+
|
|
14
|
+
> Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:
|
|
15
|
+
> * We do not provide documentation or support for the API.
|
|
16
|
+
> * Do not make queries to the API more than once per 60 seconds.
|
|
17
|
+
> * Abuse of the API may result in account termination.
|
|
18
|
+
> * Access to API endpoints may break at any given time, with no warning.
|
|
19
|
+
|
|
20
|
+
As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.
|
|
21
|
+
|
|
22
|
+
## Getting Started
|
|
23
|
+
|
|
24
|
+
First add the package to to your project:
|
|
25
|
+
```bash
|
|
26
|
+
pip install vrchatapi-async
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Below is an example on how to login to the API and fetch your own user information.
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import asyncio
|
|
33
|
+
|
|
34
|
+
# Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
|
|
35
|
+
import vrchatapi
|
|
36
|
+
from vrchatapi.api import authentication_api
|
|
37
|
+
from vrchatapi.exceptions import UnauthorizedException
|
|
38
|
+
from vrchatapi.models.two_factor_auth_code import TwoFactorAuthCode
|
|
39
|
+
from vrchatapi.models.two_factor_email_code import TwoFactorEmailCode
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
async def main():
|
|
43
|
+
configuration = vrchatapi.Configuration(
|
|
44
|
+
username = 'username',
|
|
45
|
+
password = 'password',
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
# Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
|
|
49
|
+
# Here we enter a context of the API Client and instantiate the Authentication API which is required for logging in.
|
|
50
|
+
|
|
51
|
+
# Enter a context with an instance of the API client
|
|
52
|
+
async with vrchatapi.ApiClient(configuration) as api_client:
|
|
53
|
+
# Set our User-Agent as per VRChat Usage Policy
|
|
54
|
+
api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
|
|
55
|
+
|
|
56
|
+
# Instantiate instances of API classes
|
|
57
|
+
auth_api = authentication_api.AuthenticationApi(api_client)
|
|
58
|
+
|
|
59
|
+
try:
|
|
60
|
+
# Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
|
|
61
|
+
current_user = await auth_api.get_current_user()
|
|
62
|
+
except UnauthorizedException as e:
|
|
63
|
+
if e.status == 200:
|
|
64
|
+
if "Email 2 Factor Authentication" in e.reason:
|
|
65
|
+
# Step 3.5. Calling email verify2fa if the account has 2FA disabled
|
|
66
|
+
await auth_api.verify2_fa_email_code(two_factor_email_code=TwoFactorEmailCode(input("Email 2FA Code: ")))
|
|
67
|
+
elif "2 Factor Authentication" in e.reason:
|
|
68
|
+
# Step 3.5. Calling verify2fa if the account has 2FA enabled
|
|
69
|
+
await auth_api.verify2_fa(two_factor_auth_code=TwoFactorAuthCode(input("2FA Code: ")))
|
|
70
|
+
current_user = await auth_api.get_current_user()
|
|
71
|
+
else:
|
|
72
|
+
print("Exception when calling API: %s\n", e)
|
|
73
|
+
except vrchatapi.ApiException as e:
|
|
74
|
+
print("Exception when calling API: %s\n", e)
|
|
75
|
+
|
|
76
|
+
print("Logged in as:", current_user.display_name)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
if __name__ == "__main__":
|
|
80
|
+
asyncio.run(main())
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
See [Examples](examples/README.md) for more example usage on getting started.
|
|
84
|
+
|
|
85
|
+
## Async API notes
|
|
86
|
+
|
|
87
|
+
Compared to [the synchronous SDK](https://github.com/vrchatapi/vrchatapi-python), this version changes the calling convention:
|
|
88
|
+
|
|
89
|
+
- Every API method (`foo`, `foo_with_http_info`, `foo_without_preload_content`)
|
|
90
|
+
is an `async def` coroutine and must be awaited.
|
|
91
|
+
- `ApiClient` is used as an async context manager (`async with ... as api_client`).
|
|
92
|
+
- The `async_req` parameter and the thread-pool based `async_req=True` usage are
|
|
93
|
+
removed; calls are natively asynchronous.
|
|
94
|
+
- `foo_with_http_info()` returns an `ApiResponse` object (`status_code`,
|
|
95
|
+
`headers`, `data`, `raw_data`) instead of a `(data, status, headers)` tuple.
|
|
96
|
+
- `foo_without_preload_content()` returns the raw aiohttp response for
|
|
97
|
+
streaming; the legacy `_preload_content=False` parameter is removed.
|
|
98
|
+
- The session `CookieJar`, the readable 2FA errors
|
|
99
|
+
(`UnauthorizedException` with status 200), the URL-encoded basic auth, the
|
|
100
|
+
`~()` safe path-parameter charset and the lowercase boolean query parameters
|
|
101
|
+
behave exactly like the synchronous SDK.
|
|
102
|
+
|
|
103
|
+
## Contributing
|
|
104
|
+
|
|
105
|
+
Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
|
|
106
|
+
|
|
107
|
+
## Websocket (Pipeline) API
|
|
108
|
+
|
|
109
|
+
The SDK also ships a hand-written async client for VRChat's real-time
|
|
110
|
+
WebSocket (Pipeline) API (`wss://pipeline.vrchat.cloud`), which pushes invites,
|
|
111
|
+
friend requests, friend online/offline events, user and group updates to the
|
|
112
|
+
authenticated client. The connection is receive-only; every message's
|
|
113
|
+
double-encoded `content` field is automatically unpacked into a plain dict.
|
|
114
|
+
|
|
115
|
+
```python
|
|
116
|
+
import asyncio
|
|
117
|
+
|
|
118
|
+
import vrchatapi
|
|
119
|
+
from vrchatapi.api import authentication_api
|
|
120
|
+
from vrchatapi.websocket import VRChatWebSocket
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
async def main():
|
|
124
|
+
configuration = vrchatapi.Configuration(username="username", password="password")
|
|
125
|
+
async with vrchatapi.ApiClient(configuration) as api_client:
|
|
126
|
+
api_client.user_agent = "ExampleProgram/0.0.1 my@email.com"
|
|
127
|
+
await authentication_api.AuthenticationApi(api_client).get_current_user()
|
|
128
|
+
|
|
129
|
+
# Reads the auth cookie + User-Agent from the logged-in client.
|
|
130
|
+
ws = VRChatWebSocket.from_client(api_client)
|
|
131
|
+
|
|
132
|
+
@ws.on("friend-online")
|
|
133
|
+
async def on_friend_online(event):
|
|
134
|
+
print("online:", event.content["user"]["displayName"])
|
|
135
|
+
|
|
136
|
+
# Or consume the same stream as an async iterator:
|
|
137
|
+
# async for event in ws:
|
|
138
|
+
# print(event.type, event.content)
|
|
139
|
+
|
|
140
|
+
await ws.run() # blocks; reconnects automatically by default
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`VRChatWebSocket` supports callback registration (`ws.on("friend-online", ...)`
|
|
144
|
+
/ `@ws.on(...)`, a catch-all `ws.on_event(...)`), an async iterator over the
|
|
145
|
+
same event stream, error/connect/disconnect/reconnect hooks, automatic
|
|
146
|
+
reconnection with exponential backoff (`auto_reconnect=False` disables it), and
|
|
147
|
+
a configurable application-level heartbeat (default 30s;
|
|
148
|
+
`heartbeat_interval=None` disables it). See
|
|
149
|
+
[examples/examples-source/websocket.py](examples/examples-source/websocket.py)
|
|
150
|
+
and the [Websocket API reference](https://vrchat.community/websocket) for
|
|
151
|
+
details.
|