Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jwdeveloper/instagramlive

Receive live stream events (comments, gifts, etc.) in realtime from Instagram LIVE.
https://github.com/jwdeveloper/instagramlive

insta instagram interactive live livegames liveinstagram

Last synced: 1 day ago
JSON representation

Receive live stream events (comments, gifts, etc.) in realtime from Instagram LIVE.

Awesome Lists containing this project

README

        







Instagram Live

❤️❤️🎁 *Connect to Instagram live in 3 lines* 🎁❤️❤️










# Introduction
A C# library dedicated for connecting to Instagram live.

Join the support [discord](https://discord.gg/e2XwPNTBBr) and visit the `#instagram-support` channel for questions, contributions and ideas. Feel free to make pull requests with missing/new features, fixes, etc

**NOTE:** This is not an official API. It's a reverse engineering project.

## Getting started
1. Install the package
```java

```

2. Create your first chat connection
```C#

var client = InstagramLive
.NewClient()
.Configure(properties =>
{
//User credentials to login
properties.UserName = "username";
properties.Password = "********";

//Or sessionId + deviceId
properties.SessionId = "session id";
properties.DeviceId = "device id ";
})
.OnError((live, @event) =>
{
Console.WriteLine($"we have error { @event.Exception.Message}");
})
.OnConnected((live, @event) =>
{
Console.WriteLine("Connected to live");
})
.OnDisconnected((liveClient, data) =>
{
Console.WriteLine("OnDisconnected to live");
})
.OnJoin((liveClient, data) =>
{
Console.WriteLine("User joined to live "+data.ToJson());
})
.OnComment((live, @event) =>
{
Console.WriteLine("Comment "[email protected]());
})
.OnSystemComment((liveClient, @event) =>
{
Console.WriteLine("System Comment "[email protected]());
})
.Build();

await client.Connect("jacolwol");
```

## Contributing

[Library documentation for contributors](https://github.com/jwdeveloper/TikTokLiveJava/wiki)

Your improvements are welcome! Feel free to open an issue or pull request.