Is it possible to get a Yammer Message (JSON) By ID
It seems that you should be able to do this:
https://www.yammer.com/api/v1/messages.json?message_id=424641330
If you do this, it returns XML not JSON:
https://www.yammer.com/api/v1/messages/424641330
HELP!
If you want the specific message in json without searching the thread, just use
https://www.yammer.com/api/v1/messages/[:id].json
So in your case,
https://www.yammer.com/api/v1/messages/424641330.json
You can get a specific message by fetching that thread using thread id.
Use this:
https://www.yammer.com/api/v1/threads/[:id].json
This will get the required thread with the messages in JSON form.
The endpoint you are trying to access is basically used to manipulate messages, i.e. creating or deleting a message.
I hope that helps
Related
After doing some reading through the docs it seems like if you wanted to read all messages for all users in a Microsoft Exchange Online tenancy you need to do something like:
Get all users
For each user, get all mailFolders
For each mailFolder, get all messages
Is this the best way to get all messages, or is there some way to return all messages regardless of the mailFolder they are in?
You can omit the second point and get all the messages in a user's mailbox by calling the endpoint:
GET /users/{id|userPrincipalName}/messages
Resource:
List messages
I was trying to send skype-bot message to skype-user using REST API in nodeJs, but user receives bot-message two times of that single message. I am sending the message with HTTP POST request only single time using a single activityId. Is there any way to control duplicate messages? what can be the reason behind this?
I have gone through this Receiving the same message twice
Can anyone please like to help finding the issue?
[No sdk or other library is used ]
I have found the issue. I was subscribing redis to read message and deliver to user. I found that it was happening twice[one in my app uploaded to server and another in my local machine]. Now resolves. Thanks !
I am developing a Google Actions project for Google Home using api.ai.
Is it possible to pass a state parameter as part of the response to api.ai and have it included in the next request?
The Amazon Alexa API handles such a flow and it came in handy.
Thanks
EDIT:
I did not mention this before: I have api.ai sending requests to a webhook after google assistant triggers my intents. The response api.ai expects is defined here. I've tried including extra fields in the response but these are not included in any future intent requests from api.ai. I've also tried adding fields and values to the google specific portion of the response (defined here) to no avail.
As an example of what I am interested in, when responding to Alexa requests we can include a json field "sessionAttributes" which are then passed by Amazon in any future requests that are part of that interaction.
In this instance I query a database key on the first intent (which is subsequently used to pull a record) and pass that key in sessionAttributes to avoid performing that lookup for every intent request I receive.
The equivalent that you are looking for to sessionAttributes in Alexa dev depends on whether you are using an API.ai webhook or a conversation webhook. Reference this doc for more info on the differences.
Since you are using API.ai, assuming you are using the Node.js client library, use the snippet below. 'Contexts' can store data, not just serve as a flag of sorts to establish where you are in a conversation. Call setContext just before you call 'ask' and close out your webhook fulfillment.
app.setContext('<context name>', <lifespan of context>, <JSON to store>)
Then for the next round of fulfillment, retrieve the JSON from the parameters object within the Context. Get it with:
var myContext = app.getContext('<context name>')
Reference the examples in these docs for more info.
You could create an optional parameter in API.ai to catch/store this value and append any message being sent to API.ai with a marker and then the database value you want to cache, so API.ai recognizes from the marker the value to be cached as the parameter, and this would be passed back out of API.ai as well, so if you needed to chain/loop this, on your side you again just check if it has the special 'append' parameter value to append that to the next user message.
That being said, contexts can likely achieve the same end-goal you are trying to achieve in a much more straightforward fashion
I get all messages using API and store their in my database.
If an user modify his message that I have been got, how could I get this new message modified?
Does someone know what method to use or what API because I need to retrieve this text modified and update the older
Thanks a lot for your replies
You should use the [Data Export API][1] for this task. The MessageVersions.csv file will be updated with changes that you can review. There have been no changes to the REST API surface for the Edit Post feature.
I need to be able to access a log of all SMS that were sent. Is there a way to do this via their HTTP API? I haven't had much luck finding anything that reference this in their docs.
There is a feature called 'callbacks' that can send an HTTP request to your server for every message you send. It will give you status updates about the message and the message charge. This allows you to build up whatever form of custom reporting that you may want.
https://www.clickatell.com/developers/api-docs/callback-(push-status-and-cost-notification)-advanced-message-send/
You send your message with the callback parameter... And you specify your URL to receive callbacks on your API connection on the website.
Unfortunately, you can't access reporting features like that via API. You need to log in to your central dashboard to get that information.
You can, however, query the message status if you have the message ID, but I don't think that's quite what you're looking for.
(Disclosure: I work for Clickatell)