How to get list of participents joined the Twilio's whatsapp sandbox - twilio-api

anyone knows how to get the list of numbers joined the twilio's whatsapp sandbox. I am creating a automation script, in which, i want to send the whatsapp messages to all the Sandbox Participants.

Not sure if there is any native method is available or not, but some how found a alernative solution. I fetched all the numbers who have joined the sandbox, using below code:
to = []
for msgs in client.messages.list():
if("Join" in msgs.body):
to.append(msgs.from_)

Related

Can't get Google Chat messages with Gmail API

What are the details of your problem?
Until recently, in my own web application, I used the Gmail API to retrieve Google Chat messages as follows.
I was able to get it from "Label: CHAT" by executing as follows.
(1) Acquisition of thread ID belonging to CHAT label
https://gmail.googleapis.com/gmail/v1/users/me/messages?labelIds=CHAT
(2) Get message information from thread ID
https://gmail.googleapis.com/gmail/v1/users/me/threads/[Thread ID]
However, it seems that it has been impossible to obtain it since around December 2022, and when I searched for "in: chats" in Gmail, the messages after December 10th were not displayed.
Any method is fine, so I would like to be able to get Google Chat messages as before.
Anyone know the cause and solution?
Please check.
I also tried using the Google Chat API to see if it was possible to get messages, but I could only get messages in the space, and I couldn't get direct messages, so I wasn't able to use it.
I checked all the messages in the labels that can be obtained at "https://gmail.googleapis.com/gmail/v1/users/me/labels", but it seems that chat messages are not included.
Also, in another answer, there was a description that the state included in the Gmail API was a bug, so it is possible that this bug was adapted and it was not displayed, but in that case, there is another way to deal with it. Are you there?
Access CHATS label with Gmail API

Is it possible to develop multiple Whatsapp bots with one phonenumber?

Whatsapp just released their api (yeah FINALLY!)
You have to confirm a phonenumber. I was wondering if you could create multiple Whatsapp bots with one phonenumber. Or you would need to buy prepaid cards for each new bot to receive sms and confirm that number.
Each bot should have it's own number.
When a user sends a message, the correct bot needs to load which is not possible, as it cannot guess which one was intended.
A possible workaround is to combine all bots into a single one and create a redirection phase (first one obviously) with a "bot selection menu".
For example:
Hi, please choose the correct service:
shopping helper
calendar
timer
app downloader
Choosing an option will load the requested agent

Do Google has some API to retrieve all conversations inside a room in Hangout

I am trying to get hold of all conversations that has happened inside a room. I am assuming, as one becomes part of the room, then the same person can see all the past messages that has happened inside the room. Similarly, when a bot is added inside a room, why the bot is not able to get hold of the messages that has been running from past.
Following from the API documentation of Google Chat API, we can only get hold of messages if we have the messageID. So, I have two questions now.
Is there any way, we can use any GOOGLE APIs to download conversations inside a room?
Is there any way, we can get the messageIDs of the conversations that has happened inside the room?
Thanks
Satya
There is no way to do what you are asking for.

Is there a way to get the Suggested Contacts through Outlook API?

I'm currently developing an app that fetches my contacts in my Microsoft account.
The problem is, unlike Google, when I send or receive an email to/from a new contact, it isn't copied into My Contacts, so I can't get it through https://outlook.office.com/api/v2.0/me/contacts.
However, when I wrote a new email, it appears as a suggestion, so I guess it is stored somewhere else.
The question is: is there a way to access to my suggested contacts through the API to get their emails? And how?
Thank you 😊
This feature is only available in beta version for now, please see the following api:
https://outlook.office.com/api/beta/me/contacts?$select=EmailAddresses,GivenName,Surname,DisplayName
This api will return all the contacts that you have received an email from or sent an email to :)
The closest thing to what you're looking for is the People API. As that page says:
The People API returns relevent person entities with each request. A person aggregates information from across mail, contacts and social networks. The results are ordered by their relevance, which is determined by the criteria specified in the request and ranked based on multiple communication, collaboration and business relationships.

Possibility on implementating sending Direct message using Twitter API

I would like to know how to send Multiple Direct message on Twitter. In my app using twitter api, i am able to send Direct message to one( Using DM Syntax ).
Currently i can see some tools like MultiDM website allows to send multiple Direct messages at a time.
So is that possible from iPhone's twitter api?
Also i wonder how the MultiDM website works as such
Pls let me know
In twitter API there is only 1 method of sending a DM: https://dev.twitter.com/docs/api/1/post/direct_messages/new
If you need to send multiple DM's - just call this method multiple times (with different recipient)
Yes you cant send DM to more than one user in a single call of the API.
If you want to send DM to multiple users, just make an array of all users id or screen name and in a loop send direct messages to All through the below API...
https://dev.twitter.com/docs/api/1/post/direct_messages/new