An unofficial wrapper around the Gfycat API written for .NET Standard 1.2
- .NET Core 1.0 (and up)
- .NET Framework 4.5.1 (and up)
- Universal Windows Platform 10.0
- Universal Windows 8.1
- Universal Windows Phone 8.1
using Gfycat;
...
GfycatClient client = new GfycatClient("replace_with_your_client_ID", "replace_with_your_client_secret"); // client authentication happens during first 401
GfyStatus gfyStatus = await client.CreateGfyAsync(File.Open("somefile", FileMode.Open));
Gfy completedGfy = await gfyStatus.GetGfyWhenCompleteAsync();
// congrats, you now have a gfy
Gfycat.Net also supports the analytics and impression endpoints under the project "Gfycat.Net.Analytics" or namespace "Gfycat.Analytics".
Creating an analytics client
using Gfycat.Analytics;
...
string userTrackingCookie = GfycatAnalyticsClientConfig.GenerateCookie(); // not required
GfycatAnalyticsClient client = new GfycatAnalyticsClient("replace_with_app_name", "replace_with_any_app_identification", replaceWithAppVersion, userTrackingCookie); // the cookie may also be null
Session cookie will be auto generated, or you can provide one in a GfycatAnalyticsClientConfig