overwolf.social.gfycat

Provides access to the Gfycat social provider.

Methods

performUserLogin()

Version added: 0.116.1

Opens the login dialog. There is no callback for this method and the only way to know if the user signed in is via onLoginStateChanged

performLogout()

Version added: 0.116.1

Performs a “strong” sign out of Gfycat, so that even if the user performs a login via the Overwolf Settings / Accounts page, he will be considered signed out

getUserInfo()

Version added: 0.116.1

If the user is currently logged into Gfycat, this will return userinformation: https://developers.gfycat.com/api/#getting-the-authenticated-user-s-details
Otherwise, an error is returned

share()

Version added: 0.116.1

Possible errors that can occur:

– Disconnected (user isn’t signed in)

– MissingFile (trying to share a missing file)

– UnsupportedFile (trying to share an unsupported format)

– ExceedsMaxSize (the file is too large: > 8 MB for images, > 100 MBfor videos)

Events How to use events

onLoginStateChanged

Version added: 0.116.1

Fired when a media event has been posted.

Types

overwolf.social.gfycat.GfycatShareParameters

Options

file

<string>

The file to share.

trimming

<VideoCompositionSegment[]>

An object containing start time and end time for the desired videosegment.Optional parameter.

title

<string>

The message to include with the shared file.

privateMode

<bool>

Only relevant for when the user is logged in, we then allow him toupload the file to his Gfycat account with private set to trueDefault value: false

tags

<string>

An array of chronological events that occurred during the capture.Optional parameter.

gameClassId

<int>

The associated game's class ID.Optional parameter.

metadata

<object>

Extra information about the game session.Optional parameter.