Slack API - Detecting user in a call? - slack-api

Is there an endpoint in Slack API to detect a user (AKA me) is in a call? getPresence just returns 'active' and 'away' which is not helpful - I can be active but not in a call. I tried getting user status, that is of no help either

There's no API that will return that information at this time. The calls.info method would return a list of users in a specific call but you'd need to know the call id for that. Something as simple as knowing if any given user is on a call would be a great feature request for the users.getPresence method. Happy to pass that along!

Related

Microsoft Graph API: How to use Get Call Method?

I'm using the Microsoft Graph API to retrieve information about Microsoft Teams.
Now i want to retrieve information about the call using the method in the documentation below:
https://learn.microsoft.com/en-us/graph/api/call-get?view=graph-rest-1.0&tabs=http
Here is written that i have to use the following url:
GET /communications/calls/{id}
The thing is that i don't know what is the id i need to use because in the documentation is not specified.
I try to use the group id, channel id and personal id of Teams but none of them works. Somebody knows how to use this method?
Thanks
See Properties of call resource type, id is the call id. Read-only.
When you create a call, you will get an id in the response. see the response sample.
When you need to get the call, just put this id value into GET https://graph.microsoft.com/v1.0/communications/calls/{id}.

Studio MAKE HTTP REQUEST return sid

This is from a Studio Flow.
I'd like to return the conversation sid. The same "sid" that is used in the Twilio log system. This sid is returned when the conversation is created via a REST call. On the screen below, you can see that I've figured out how to return some flow.data values using this widget. When I look through the available sids (the list is long, but there were approximately six different variable.variable.sid type variables to choose from), none of them seem to return the value that I am looking for. I did add all of them into the JSON return packet and only two returned values. Both values were not what I was looking for.
I'm hopeful that it is something simple like {{message.sid}}, but just haven't discovered the correct variable name yet.
You want: {{flow.sid}} for the Studio Execution SID.

What does hydrate mean on Twitter?

In the Twitter API there is a status_lookup method that "hydrates" a tweet. The docs are unclear about what this means. So when do I need to hydrate a tweet?
If I have tweets from /statuses/user_timeline why would I need to hydrate them?
Please provide an example before and after of normal tweet and hydrated tweet and explain the difference.
From the docs:
"This method is especially useful to get the details (hydrate) a collection of Tweet IDs."
HYDRATE = get complete details (i.e. fields) of a tweet.
Many Twitter API calls that return tweets do not return all the fields. So, statuses/lookup may be used as a secondary call to get these fields.
For example, search/tweets may return tweets that have embedded video, but it will not return the URL of the embedded video. So, a second call to statuses/lookup is required to get the video.

Help with facebook multiple requests in IOS

I need to perform a series of FBrequests. Basically it is an array which for each item I have to make a FBrequest.
What I need to know is if it is guaranteed that the order of the requests received by the - (void)request:(FBRequest*)request didLoad:(id)result method is the same of when the requests were made. In other words, in case the order of the requests is: FBrequest_1 -> FBrequest_2, is it guaranteed that the didLoad method will receive the responses as: FBresponse_1 -> FBresopnse_2? Or is it possible that the FBresponse_2 is received before the FBresponse_1?
Thanks in advance!
By default the requests are independent. You can use "batch requests".
Here you can see "Specifying dependencies between operations in the request" section.
You can also initiate FBrequest_2 in the callback of FBrequest_1 (=FBresponse_1). Facebook SDK for iOS calls to FB asynchronously and each request has a callback with a response so just call your second request from that callback to make sure it is done alsready, you also can use the information you get from the response in your second request.
hope this helps

Getting all twitter followers using twitterizer

I am using Twitterizer 2. in general it does the job very well, but I have one thing missing.
I need to get all the followers of my user. and the method brings Twitterizer.TwitterFriendship.Followers(Token) only brings 100 of them.
in the twitter API I saw that you can use a cursor for "paging" you request, but I couldn't find this functionality in twitterizer.
Any Idea anyone?
The TwitterUserCollection class (that is returned by the Followers method) have NextPage() and PreviousPage() methods that will perform the paging for you.
For example, to get all of your followers, you can perform this:
TwitterUserCollection myFollowers = TwitterFriendship.Followers(token);
while (myFollowers != null)
{
// Do something with the users here
// Get the next page
myFollowers = myFollowers.NextPage();
}
If you have additional questions, please post them in our forums: http://forums.twitterizer.net/

Resources