Microsoft Teams Can't get group chat members - microsoft-graph-api

I have a task module trying to post the first message to a new group chat in Microsoft Teams.
I'm getting the chat ID using the context and when I'm trying to resolve the chat members list using
GET /chats/{chat-id}/members
I get 404 error, I noticed that the chat id is a little different. it contains the word "preview" i.e "19:preview-xxxx" don't know if that's related
any suggestions?

yes the chat id has a combination of numbers and characters,please use the complete chat id and it should work fine. My sample query that worked perfectly fine looked like this -
https://graph.microsoft.com/beta/me/chats/19:32*xxxxxxxxxxxxxxx1*x*.gbl.spaces/members.

Related

Graph API: Suggestion of available meeting rooms even though organizer is busy at that given time

We are developing mobile app to book the meeting room based on its availablity at given time using GRAPH API. This is a spcific case where oragnizer is busy in another meeting but he/she still wants to block a meeting room at the same time. FindMeetingTime API is not giving suggestion for rooms if the oragnizer is busy.
How to display a list of available meeting rooms at present using Microsoft Graph API
I have gone through this but this is not going to serve my problem as I am looking for API which gives meeting rooms suggestions even though organizer is not avaiable.
Can you please suggest any API or any soultion which solves the problem.
Thanks
You can create and use any generic service account of your Active directory that does not belongs to a person and pass it in your Request body as an attendee in your Request to find rooms.it should return room list in response .

Get Chat History From Zopim iOS Chat SDK

How do i get chat history for Zoipm chat iOS SDKs, i am logging using anonymous user using default controller, is there any pre-config to be set to get this.
From an end-user's perspective, there is no way of seeing a chat history. Each chat is treated more like a ticket as it creates a ticket with the transcript upon completion. A chat transcript can be sent to the end-user.
I suppose the end-user could look through their ticket history and effectively see the chats alongside their other submitted tickets.

Quickblox: Share 1.Image and 2.Video along with text chat among users

I am able to establish 1-1 chat by creating a room. I have used room because I will get history of last 50 messages (I would prefer more in number with paged results and expecting this feature in the near future).
I am unable to figure out how I can implement image and video sharing in between the text chat.
I also want this in the history I get. I mean I need to get the order of the text/image/video along with their details to display to the user.
When I upload an image file using Content module, the files are saved in a separate table in contents section (which is fine for user's gallery kind of app). But for chat we need to know who sent to whom and what (image/video/text).
I would like to know whether this is possible with the current version of the Quickblox sdk. or else is there any way we can establish this using Custom objects module? If possible, will this work if there are more number of users in the room? Please give me a solution to this.
If you want create chat with content, you need to use a Custom Objects. (in current QB version).
Advantage - you can also get chat history and implement deleting of message history.
But this method doesn't very simply.
At first you need create Custom objects represented next things:
single chat message
group chat message
(may be need create extended user profile)
At first, you can use QBChat module for changing service information between users.
When you need send message, you create Custom Object (CO) - message with parameters and upload it. When it uploading, you send service message via QB chat to your opponent user. When opponent will receive it, he should perform request for updating CO (in this case - single message).
As example, single chat message can contain next parameters:
opponent qb user id;
owner qb user id;
message text;
link to content;
Sending of content message divide to next steps:
At first, you need upload content file using Content module, and after this create message CO, upload it on server and send service message to your opponent

Not able to get previous group chat history using ruby xmpp4r

I am using ruby xmpp4r library to implement multi user group chat application with openfire server. I have created chat room on openfire server successfully. If user joins into chat room with openfire credential it's not returning previous group chat history it returns only few messages for that I am using add_message_callback() method.
Below is the openfire Group Chat History Setting:
** Show Entire Chat History (Show the entire chat history to users joining a room.)-- True
What am I missing here ?
Anybody have sample code to get previous group history?
I ran a Wildfire server (successor to openfire), this setting seems to be server side. On wildfire admin console its controlled under Group Chat > History Settings. It has the following options there:
Don't Show History - Do not show a chat history to users joining a room.
Show Entire Chat History - Show the entire chat history to users joining a room.
Show a Specific Number of Messages - Show a specific number of the most recent messages in the chat. Use the box below to specify that number.

Open Graph on mobile (iOS)

I would like to realize an iPhone app with Facebook OpenGraph to push user activities directly in Facebook (for this part, it's OK). BUT, I would like to show friends activities for the same verb. In dev Facebook documentation, I don't find API to get friends activities...
Any ideas ?
GET /me/{namespace}:{action-type}
GET /me/{namespace}:{action-type}/{object-type}
Don't forget to ask for the permissions firends_actions:namespace
Namespace = namespace of your app
Find friends with the app (this gives you a nice tidy list)
Option 1. Use Fql.query so you can apply filters and get back only what you need...
Fql.query POST
SELECT uid, name, pic from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1", #"query
option 2. Use opengraph and get back a mother list of friends with their ID any fields you want to read (installed status shown)
GET me/friends&fields=installed
Then use the Friends list to download their {action-type} executions
Option1. Enumerate through your friends activity with this and then bare it all:
GET /friend_id/{namespace}:{action-type}
option 2. Force the user to browse the list of friends with the app...
They choose the friend and then ->
GET /friend_id/{namespace}:{action-type}
They get a list of that users last 25 actions.
It's how instagram works when you browse.
The thing we all want is to just have a feed with the last 25-50 actions by friends. Just like the activity plugin. At this point it seems like there is no way to get it. I spent hours searching and everyone ends up saying you need to do it manually on your own server. I wouldn't be surprised if this activity function is added to the graph sdk eventually. It's a reasonable request.

Resources