Skip to main content

overwolf.social.gfycat API

Provides access to the Gfycat social provider.

Deprecated

This API has been deprecated, following Gfycat shutting down.

tip

You can use overwolf.social.getDisabledServices() method to check if the service is available.

Methods Reference​

Events Reference​

Types Reference​

performUserLogin()​

Version added: 0.128​

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 event.

performLogout(callback)​

Version added: 0.125​

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.

ParameterTypeDescription
callback(Result) => voidA callback function which will be called with the status of the request

getUserInfo(callback)​

Version added: 0.125​

If the user is currently logged into Gfycat, this will return user information, Otherwise, an error is returned.

ParameterTypeDescription
callback(Result: GetUserInfoResult) => voidA callback function which will be called with the status of the request

share(GfycatShareParameters, callback)​

Version added: 0.125​

If the user is currently logged into YouTube, this will perform the video share.

ParameterTypeDescription
gfycatShareParamsGfycatShareParameters ObjectThe share parameters
callback(Result) => voidA callback function which will be called with the status of the request

Types of 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)

shareEx(GfycatShareParameters, callback, callback)​

Version added: 0.198​

If the user is currently logged into Gfycat, this will perform the video share.

ParameterTypeDescription
gfycatShareParamsGfycatShareParameters ObjectThe share parameters
resultCallback(SocialShareResult) => voidA callback function which will be called with the resulting status of the request
progressCallback(socialShareProgress) => voidA callback function which will be called whenever share progress is made. See note

Types of 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)

Progress Note​

This callback will only be called when uploading a video.

Videos will be uploaded in uniforamlly sized chunks (except for the last chunk). The callback will be called every time another chunk was successfully uploaded.

cancelShare(string, callback)​

Version added: 0.198​

cancels an ongoing share request with the given id, if valid. Callback will be invoked with success if such a request was found and a cancellation order was executed (may take a while)

ParameterTypeDescription
idstringThe request ID
callback(Result) => voidCalled with the result of the cancellation
overwolf.social.gfycat.cancelShare("2", console.log)

onLoginStateChanged​

Version added: 0.125​

Fired when the user’s login state changes, with the following structure: LoginStateChangedEvent Object.

GfycatShareParameters Object​

Version added: 0.125​

This object defines all parameters that can/should be passed to the Gfycat share() and shareEx() methods.

ParameterTypeDescription
filestringThe file to share
id (Optional)stringThe ID for the current share request. See note
useOverwolfNotificationsbooleanWhether or not Overwolf notifications should be used. See note
trimming (Optional)VideoCompositionSegmentAn object containing start time and end time for the desired VideoCompositionSegment
titlestringThe message to include with the shared file
privateModeboolOnly relevant for when the user is logged in, we then allow him toupload the file to his Gfycat account with private set to true.
Default value: false
tags (Optional)stringAn array of chronological events that occurred during the capture
gameClassId (Optional)intThe associated game's class ID
metadata (Optional)ObjectExtra information about the game session

id note​

When calling overwolf.social.gfycat.shareEx(), it is required to supply it with a request ID. This ID will also be used in case you wish to cancel this share using overwolf.social.gfycat.cancelShare().

useOverwolfNotifications note​

When calling overwolf.social.gfycat.share(), this will default to true. When calling overwolf.social.gfycat.shareEx(), this will default to false.

SocialShareResult Object​

Version added: 0.198​

Container for the url shared in a successful share.

ParameterTypeDescription
urlstringThe url of the generated result

Example data​

{
"url": "https://gfycat.com/helpfulignorantfoxterrier"
}

SocialShareProgress Object​

Version added: 0.198​

The current progress of the share request

ParameterTypeDescription
progressintThe current precentage of upload progress
idstringThe id of the share request
stateShareStateThe current state of the share request

Example data​

{
"progress": 44,
"id": "1",
"state": "Uploading"
}

ShareState Enum​

Version added: 0.198​

The current state of the overwolf.social.gfycat.shareEx() operation.

OptionsDescription
StartedThe upload has started
UploadingThe upload is in progress
FinishedThe upload has finished