Share a message to another group using Yammer REST API and C# - yammer

I want to use Yammer REST API and C# to share a post to another group (not posting a new message but sharing existing post) from my C# application. Does anybody know how it can be achieved.
Thanks in advance.

The REST API for Yammer supports sharing posts. You must pass the parameter shared_message_id to share an existing message. The answer at Yammers REST API to Share a Post explains how to do this with Ruby, and I've shared below the Ruby code snippet used to share a post.
require 'yammer'
group_id = '123456'
shared_message_id = '7890123'
yam = Yammer::Client.new(:access_token => 'OAUTH_TOKEN')
yam.create_message('Message text to accompany the shared post', :group_id => group_id, :shared_message_id => shared_message_id)
The answer for C# will be the same as however you would make a new post in C#, but you will need to pass the shared_message_id parameter to the endpoint.

Related

difference in API/session in Google API billing

Not able to differentiate between price per request and price per session in Google API
I'm facing difficulty in
understanding some billing related terms for Google API. I know, this question might be more suited for support directly from Google. I tried but not getting satiesfactory response.
I was going through this URL:
https://developers.google.com/maps/billing/understanding-cost-of-use#ac-per-character
Here both 'price per request' and 'price per session' has been provided.
While I understand the difference between request and session, my question
is related to example provided in the same link, which is like this :
Places Autocomplete Request (input=”paris”, session_token: XYZ)
What I know, in google API, we just pass an API KEY to get results, but above seem to have required session_token. This has confused me. How can I pass session_token, when google has provided just an API KEY to me after creating billing account?
Is API key same as Session_token or does that mean, I need to get session token after 'first' passing API_KEY via code.
I'm not able to find good example explaining this till now.
Thanks for your help !!

Google Dialogflow API v2 Explorer access_token field

Please forgive me, I am fairly new to the Dialogflow Api (v2.)
I am starting off with testing these API calls using the Google API Explorer utility on the right side of the page.
My question is specifically about the "access_token" field:
Is this supposed to be the JSON authentication file that I downloaded from the Google Cloud Console when I created a new service account?
If not, then where do I find the specific resource I am actually supposed to pass into this field?
Side note: I read in the support section: "Google engineers monitor and answer questions about the Google API Explorer on Stack Overflow using the tag google-apis-explorer." Thank you all in advance for your service/help in this topic!
The access_token field is a higher-level field used across the API by some tooling. In some manual client libraries, you might need to use it, but for the API Explorer utility and for most use-cases, you can ignore it. This is true of most (maybe all) fields under the "Show standard parameters" zippy.
The documentation on the left side should explain the relevant fields you need to fill in to successfully complete a request. Keep in mind that even some of these fields are optional; you can leave them blank if they are not relevant to your goal.

MailChimp send email v3.0

The version 2.0 of MailChimp APIs has a campaign send API. However I don't find any similar API on v3.0. I do find an automation API where in I can start a workflow, however it appears from the documentation that workflows can't be created using APIs and can be created only using the GUI.
The requirement is to be able to send emails using MailChimp API. Please advise.
It's now possible to both create and send a campaign through the V3.0 API.
See the 'Action' tab here
You can send to a saved segment, but as far as I can tell, there's no way to create a saved segment via the API.
You actually cannot send one on one email with APIv3.0. Mandrill now takes over for the transactional emails.
It's not yet possible to edit or create campaigns in API v3.0. See the API v3 roadmap.

I have to create a group in yammer using JavaScript

I have to create a group in yammer using JavaScript or using any other services so we can call that service from AJAX. For that group i can give my own name,number of users and mainly i can get that group ID.
Please Help Me.
Like atmd said there doesn't seem to be any API for creation of Yammer-groups.
There are, however, endpoints for joining/leaving groups;
POST https://www.yammer.com/api/v1/group_memberships.json?group_id=:group_id
DELETE https://www.yammer.com/api/v1/group_memberships.json?group_id=:group_id
wich in turn are joining and leaving.
Source

Downloading existing paypal payments with rest api

I need to download all existing payment information from a paypal account to do some analysis on it, so I set up paypal's ruby rest sdk, which involved creating a new application with its own API keys and whatnot. I can make a successful request with the following:
payment_history = Payment.all( :count => 10 )
However,
payment_history.payments
Is empty.
I'm not sure if this application can only access payments created with it? Can I not get pre-existing payments with the rest api? I would prefer to use ruby, if that's possible, as I would like to keep this all within the simple script I have to analyze similar stripe payments.
Some guidance would be extremely appreciated, as paypal's labrinth of documentation and overlapping APIs have me pretty confused.
You will be able to query only those payments that are made or created with Rest API not the Classic APIs. You can use the Classic Ruby SDKs for the appropriate product to get the Transaction details of the classic APIs

Resources