Comments (4)
You probably will have better luck if you post this question in the Yammer Developer's Network.
from yam.
I will do so. Thanks for the suggestion.
from yam.
Here's what will work:
require 'yammer'
Yammer.configure do |c|
c.access_token = 'sometoken'
end
file1 = File.open('test.txt', 'r')
pending_file1 = Yammer.create_pending_attachment(file).body[:id]
file2 = File.open('test2.txt', 'r')
pending_file2 = Yammer.create_pending_attachment(file).body[:id]
optobj = {:group_id => xxxxxxx , :pending_attachment1 => file1, :pending_attachment2 => file2 }
tmp_obj = Yammer.create_message('building a yammer client', optobj)
from yam.
Doesn't work.
Yammer.create_pending_attachment(file)
succeeded, I parsed response.body, it received an ID, but Yammer.create_message('building a yammer client', optobj)
got closed stream
.
from yam.
Related Issues (20)
- Allow multiple Yammer accounts at same time HOT 3
- configure() Results in NoMethodError HOT 3
- Can't get access token HOT 4
- Please change developer guide documentation link to reflect the new location.
- Test Yam against ruby 2.0.0
- Implement endpoint for posting activity
- Typo in open_graph_object api HOT 1
- v2.0.2 introduces incompatibility with omniauth-oauth2 strategy HOT 1
- Yammer no longer raise Unauthorized, instead returns string "Authenticated Failure" HOT 8
- Unable to Fetch access token when tried using another account HOT 2
- The gem dependency versions are a little old. HOT 2
- Broken Link HOT 2
- Delete topic from thread!
- Jruby support
- Better handling for 404 responses needed HOT 1
- Yammer::ApiResponse does not report all successes as successful
- KeyError (key not found: :ciphers) HOT 2
- OpenSSL issue
- Respond to both 1.8 and 1.9-style ruby hash syntaxes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yam.