World of Warcraft Forever API · C_PhotoSharing.md, for your AI
C_PhotoSharing
11 functions, 5 events, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_PhotoSharing.BeginAuthorizationFlow
C_PhotoSharing.BeginAuthorizationFlow()
C_PhotoSharing.ClearAuthorization
C_PhotoSharing.ClearAuthorization()
C_PhotoSharing.CompleteAuthorizationFlow
C_PhotoSharing.CompleteAuthorizationFlow(callbackURL)
Arguments
callbackURL | cstring |
|---|
C_PhotoSharing.GetCropRatio
cropRatio = C_PhotoSharing.GetCropRatio()
Returns
cropRatio | number |
|---|
C_PhotoSharing.GetPhotoSharingAuthURL
authUrl = C_PhotoSharing.GetPhotoSharingAuthURL()
Returns
authUrl | cstring |
|---|
C_PhotoSharing.GetStatus
status = C_PhotoSharing.GetStatus()
Returns
status | PhotoSharingStatus |
|---|
C_PhotoSharing.IsAuthorized
authorized = C_PhotoSharing.IsAuthorized()
Returns
authorized | bool |
|---|
C_PhotoSharing.IsEnabled
enabled = C_PhotoSharing.IsEnabled()
Returns
enabled | bool |
|---|
C_PhotoSharing.SetScreenshotPreviewTexture
C_PhotoSharing.SetScreenshotPreviewTexture(textureObject)
Arguments
textureObject | SimpleTexture |
|---|
C_PhotoSharing.TakePhoto
C_PhotoSharing.TakePhoto()
C_PhotoSharing.UploadPhotoToService
C_PhotoSharing.UploadPhotoToService([optionalTitle], [optionalDescription])
Arguments
optionalTitle | cstring default "" | |
|---|---|---|
optionalDescription | cstring default "" |
Events
PHOTO_SHARING_AUTHORIZATION_NEEDED
No payload.
PHOTO_SHARING_AUTHORIZATION_UPDATED
showNotification | bool |
|---|
PHOTO_SHARING_PHOTO_UPLOAD_STATUS
uploadStatus | PhotoSharingUploadStatus |
|---|
PHOTO_SHARING_SCREENSHOT_READY
No payload.
PHOTO_SHARING_THIRD_PARTY_AUTHORIZATION_NEEDED
authUrl | string |
|---|