Any idea how to make a notification of twitch bans like StreamerBans for a twitter bot? - node.js

I want to create a twitter bot on node.js that notifies about bans / unbans and streams on twitch but I do not know how I have seen several "tutorials" but none shows any way, I am not very experienced in this and it is my first time working with Twitch Api and Twitter Api

Assuming you are familiar with how API works in general and this is to be designed for your own channel, first I would recommend reviewing the Twitch API documentation at https://dev.twitch.tv/docs/api#introduction to learn how to get started with your app.
Once you have your client-ID and Oath2 token you will be better prepared for learning to use the API calls to gather the information you're looking to pull.
For banned users there are two ways you can pull this information with the following requests:
GET https://api.twitch.tv/helix/moderation/banned
https://dev.twitch.tv/docs/api/reference#get-banned-users
and
GET https://api.twitch.tv/helix/moderation/banned/events
https://dev.twitch.tv/docs/api/reference#get-banned-events
Depending on the amount of information you want to gather will determine which requests you want to use.
I hope this helps in your ventures.

Related

How to make twitter bot track tweets from our followers?

I was making a twitter bot with Twit, I found making tutorials using T.stream('user')
to get stream data about our account, now its deprecated. So in 2021, how can i achieve these?
requirements:
Know when someone follows my bot, and make a thanks post.
Know when someone in my followers list or following list makes a tweet.
Also I have a doubt, when we use stream, old data is also coming, so how exactly stream works? if i only want latest tweets, I have to sent get by setting interval?
For the new followers, you will need to build something using the Account Activity API, which uses webhooks to send you event messages. You will need to filter for the follow events.
For new Tweets from people you are following, you will need to poll the home timeline endpoint. There’s no realtime method for this.

How to fetch my followers Instagram Activity via API?

My scenario is, basically, as an Instagram user I want to fetch my following users activities through API, a list of their likes, comments etc. It is able via user interface but instead I want to fetch them.
No programming language enforcement. Nodejs, Python preferably.
Thanks for any of your helps!
Well, kinda found a way to solve. There're bunch of API's on github called Instagram Private Api. I go with python one which gives a horrible response.

What is a steam trade URL

I am new to steam API. I have been tasked to create a trade bot for a website which will use this to do steam trades, for example accept trade, offer, reject etc. Due to lack of good documentation of Steam, I am struggling to gather basic information actually.
So I want to understand these things:-
What is a trade URL?
How can the bot be able to do transaction on a user's behalf, i mean it's expected to make the transaction from bot's steam account for let's say accepting a trade offer made to a steam user with steamid 111 from another steam user with steamid 222? How it can be done?
Any information will be really helpful!
I found realy nice documentation for Steam API.
You can find it here.
Also, nice resouce SteamDatabase/SteamTracking.
You can check Steam Service status using this service.
NodeJs library Tewki/CSGO-Item-Floats-From-Inspect-Links to work with Steam API.
Hopefully, this information will be usefull.
Good luck.

How to grab instagram users based on a hashtag?

is there a way to grab instagram users based on a specific hashtag ?
I run contests based on re posting photos with specified hashtag then randomly pick a winner, i need a tool that can grab the usernames of those who reposted that photo and used that hashtag.
You can query instagram using the API. There are official clients for both python and ruby.
You didn't specify what language/platform you are using, so I'll give you the generic approach.
Query instagram using the Tag Recent Media endpoint.
In the response, you will receive a user object that has the user's username, id, profile url, and so on. This should be enough to do what you are describing.
As far as tools, there aren't great options to probably do things exactly how you want. If you just want a simple contest, you could use statigram, but it's not free.
If you roll your own solution, I highly recommend you also do the following:
Implement a rate limiting mechanism such as a task queue so you don't exceed your API calls (5000 per hour for most calls). Also useful for failures/network hicups, etc.
Have users authenticate so you can use OAuth to extend your API calls to 5000/per user/hour to get around #1.
Try the subscribe API if there won't be many items. You can subscribe to a specific tag as well, and you will get a change notification. At that point though you need to retrieve the actual media item(s), and this can cost a lot of API calls depending on how frequent and what volume these changes occur.
If your users don't have much photos/relatively small/known in advance, you can actually query the user's recent media instead and filter in your own code by hash tag.

Instagram API posting likes rate limit

I created an iOS app that using Instagram API and have a critical issue posting likes to Instagram.
Using endpoint – POST /media/media-id/likes, with user-specific access token. I request scope – likes from users.
Instagram API works fine for all requests except saving likes. We can only save/post a couple hundred likes to Instagram, and then response is "We've taken extra measures to protect the Instagram API from abnormal activity. Since you have recently created your API application, please contact apidevelopers#instagram.com to receive whitelisting for a higher rate limit."
There is other developers with same issue with no support or any feedback waiting for months.
Please, let me know if there is limits and how it works, or how to become whitelisted
I don’t want to create many Instagram API clients and assign users among them. It seems like bad acting for me, if there is official API with strict limits I want to work with it.
Instagram has new API limits: 100 likes/hr 60 follows/unfollows/hr per access token. That is only if you authenticate serverside and sign your headers. Check out the new authentication: http://instagram.com/developer/authentication/
I'm using it for my new site that automates likes/follows/unfollows, haven't had any problems works great. Check it out: http://instapromobiz.com
Instagram takes increased measures to limit your API requests based on IP address. This is not common knowledge, it's just something I've come to know from working with the API extensively.
They've built an API that is FAR from perfect, but have been upgrading it to be "smart". Smart enough to know that a newer client, pinging the API many times just for one user, may very well be a script kiddie trying to bot the system. For this reason, they do not give you a rate limit error, they politely say "we have taken extra measures to protect our API from being spammed by bots".
The good news is, other users should still be able to access your liking mechanism. Just not you, from that IP.

Resources