Sending custom text notifications to users on Microsoft Teams - microsoft-teams

I have spent quite a long time trying to figure out if I can send custom activity notifications using the graph API and I have come across the 'POST https://graph.microsoft.com/v1.0/users/{userId}/teamwork/sendActivityNotification' endpoint which seems to allow me to do what I want, however I get this error whenever I try it.
Any idea on what it could be and if what I want to do is at all possible?
Screenshot of the Error
Thanks in advance.

Related

Not able to get room's event which is created by other users. in graph Api

It is really nice to have work with MS Graph API.
We are using this apis for our product.
Actually we need to get the All rooms of a User and assosiated events of the rooms.
We are able to fecth the rooms. but we are facing few issues with events.
Our requirnment for events is we have to fetch all the events w.r.t one room irrespective of who has created the events.
Currently we are getting the events which are created by me.
NOT GETTING EVNTS OF A ROOM CREATED BY OTHERS
FYI we are using auth flow with the below url
https://login.microsoftonline.com/tenatId/oauth2/v2.0/authorize?client_id=clientID&response_type=code&redirect_uri=redirectUrl&response_mode=query&scope=offline_access%20user.read%20mail.read%20places.read.all calendares.read&state=12345
and we are using below url to fetch the events
https://graph.microsoft.com/v1.0/me/calendarView/?select=id,subject,start,end,location,organizer,originalStartTimeZone&orderby=start/dateTime&filter =isCancelled eq false &top=100&endDateTime=endDateTime&startDateTime=startDateTime
Please let us know if there is any different api to fetch the rooms related all events with the token which we are getting with the above login flow.
We have checked all the documentaion but not getting expected data.
We can use the below API for the above requirement
https://graph.microsoft.com/v1.0/users/"room_email_id"/calendar/calendarView.
"room_email_id" should be replaced with the actual value
Thanking you

creating outlook add-in for for outlook 2018

I am working on a project where I would create an extension in outlook that would allow you to see how many emails you received and sent for a certain email (#edu.com). I also want to be able to see things like time received, if the person responded, and the average emails responded to for that particular email group. Any ideas on how I could accomplish this. From what I have seen so far, it looks like I should use the Outlook Graph API for. Any ideas or how to get started would be really nice!
Search for code examples, select the closest one and clone it.
After that try to change its functionality.

Google Calendar event Created/Updated/Deleted Webhook?

I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.

Debugging Google cloud messaging push messages

I am trying to send push messages to an android application.
The POST https://android.googleapis.com/gcm/send
seems to succeed and I get something (with some numbers changed) like:
{"multicast_id":9999063399994069899,
"success":1,
"failure":0,
"canonical_ids":0,
"results":[{"message_id":"0:1416520599679103%8d7d198de508343a"}]}
but I don't seem to get the notification on the device...
Is there anything that can be done with the message_id it track it forward ?
Can I somehow tell me if Google actually tired to deliver it to the device and what was the result of the attempt?
I know it's an old question and you might have solved it yourself by now, but for completeness I would like to post a solution here.
By now you can find the option GCM Diagnostics in your Google Play Developer Console when you have your app selected. It's placed on the left hand side.
You just post a registration token or a message id and will shortly see a summary of push notifications connected to this token/id, plus additional debug information.
Cheers!
well, at least until someone would provide a better answer about debugging based on message ids.
It turns out the problem in my case was that the phone gap plugin in I was using was expecting a "message" field in the push notification message payload.
A bug on my server side made this message not to exist so it was not displayed in the phones notification area...
my thanks to #Eran for partially pushing my towards the right line of thought.

Unable to get delivery notification using Wire2air API

I am using wire2air api for sending bulk sms and polling. but unable to get the delivery status for SMS.
I also have a look out their documentation here http://www.wire2air.com/developer_apis.asp
but unable to find any help from it.
also for replypath parameter in APi it is mentioned that "ONLY available in advance developer API."
So also not able to know what advance developer APi. is do i need to purchase different plan for it.
Any help on this is Appreciated.
Amit,
In order to get real-time delivery status from wire2air, you would need to implement their real-time delivery reports webservice. You should contact wire2air support, to activate the feature. If you're using a shared short code, Replypath is only used for receiving replies back to your server, this allow end users to reply to text message without using keyword.
--Sam

Resources