# C_PhotoSharing: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_PhotoSharing

## Functions

### C_PhotoSharing.BeginAuthorizationFlow

```lua
C_PhotoSharing.BeginAuthorizationFlow()
```

### C_PhotoSharing.ClearAuthorization

```lua
C_PhotoSharing.ClearAuthorization()
```

### C_PhotoSharing.CompleteAuthorizationFlow

```lua
C_PhotoSharing.CompleteAuthorizationFlow(callbackURL)
```

Arguments:
- `callbackURL`: cstring

### C_PhotoSharing.GetCropRatio

```lua
cropRatio = C_PhotoSharing.GetCropRatio()
```

Returns:
- `cropRatio`: number

### C_PhotoSharing.GetPhotoSharingAuthURL

```lua
authUrl = C_PhotoSharing.GetPhotoSharingAuthURL()
```

Returns:
- `authUrl`: cstring

### C_PhotoSharing.GetStatus

```lua
status = C_PhotoSharing.GetStatus()
```

Returns:
- `status`: PhotoSharingStatus

### C_PhotoSharing.IsAuthorized

```lua
authorized = C_PhotoSharing.IsAuthorized()
```

Returns:
- `authorized`: bool

### C_PhotoSharing.IsEnabled

```lua
enabled = C_PhotoSharing.IsEnabled()
```

Returns:
- `enabled`: bool

### C_PhotoSharing.SetScreenshotPreviewTexture

```lua
C_PhotoSharing.SetScreenshotPreviewTexture(textureObject)
```

Arguments:
- `textureObject`: SimpleTexture

### C_PhotoSharing.TakePhoto

```lua
C_PhotoSharing.TakePhoto()
```

### C_PhotoSharing.UploadPhotoToService

```lua
C_PhotoSharing.UploadPhotoToService([optionalTitle], [optionalDescription])
```

Arguments:
- `optionalTitle`: cstring, default ""
- `optionalDescription`: cstring, default ""

## Events

### PHOTO_SHARING_AUTHORIZATION_NEEDED

No payload.

### PHOTO_SHARING_AUTHORIZATION_UPDATED

Payload, after the event's name:
- `showNotification`: bool

### PHOTO_SHARING_PHOTO_UPLOAD_STATUS

Payload, after the event's name:
- `uploadStatus`: PhotoSharingUploadStatus

### PHOTO_SHARING_SCREENSHOT_READY

No payload.

### PHOTO_SHARING_THIRD_PARTY_AUTHORIZATION_NEEDED

Payload, after the event's name:
- `authUrl`: string

---
Make an addon with your 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."
