Ruby gem for Salesforce Soap Api - ruby

There are couple of gems for Salesforce Rest Api and Bulk Api. Is there any gem for Salesforce SOAP Api?

https://rubygems.org/gems/databasedotcom
This Gem provides ActiveRecord-like access to Salesforce objects. I've had good luck
with it. It abstracts the SOAP/REST protocol.

After couple of try outs, I settled for Savon Gem.

Related

How i can access gmail inbox from ruby? Is there any api for that?

I want to access gmail api to access gmail inbox to read the messages. Is there any api so that i can access the inbox and parse the messages.
Right now in our project we are using mailinatorpro account and to access the account we are using
https://api.mailinatorpro.com/api/inbox?to=#{username}&access_token=#{self.access_token}"
and then we use JSON to parse the inbox. But now we are moving to gmail so is there any way to access the inbox?
Thanx in advance.
gem install ruby-gmail
github ref
The google-drive gem uses the following syntax to access google drive:
GoogleDrive.login("username", "password")
but as you can see here, the author has done a lot of work to make that syntax so simple. This gem also allows you to login using oAuth, so that's an option also. I would dig into that git repo for some examples if you're interested in making something a bit more custom - otherwise, sagar junnarkar's suggestion of using the ruby-gmail gem is a good one.
I think you may have a look at this gem I just built that use Gmail API and not using IMAP and SMTP:
gem install gmail-api-ruby
gmail-api-ruby
Let me know what you think. We were not satisfied with ruby-gmail gem going through IMAP protocol

OmniAuth/OAuth Authentication from a ruby script

Is there a way I can test out the OmniAuth authentication from a standalone ruby script?
Every resource I could find on web lists its usage only in Rails project.This link too: http://www.omniauth.org/
In other words I could not find any client like this FitGem. The fitbit API uses Oauth authentication.FitGem is a client inteface to test out the authentication/authorization to FitBit using OAuth token.
More details here on FitGem: http://www.fitbitclient.com/guide/getting-started
Thanks.
I realize this is old, but I came across it whilst googling so others might also. Maybe this will help the next passerby...
To answer the question - no, it isn't possible to use OmniAuth within a simple, standalone script. What froderik said is correct, OmniAuth was designed to be used within an app on a rack-based framework (Rails, Sinatra, Pakyow, etc.).
To expand on that just a bit though, OmniAuth relies on the ability to intercept and send HTTP requests to/from your app. By default, OmniAuth intercepts requests to /auth/:provider to kickoff the authorization process and will then send callbacks to either /auth/:provider/callback or /auth/failure depending on the outcome of the auth attempt.
Obviously, that functionality is beyond the scope of a standalone script. But if I were to recommend a solution for writing a quick test using OmniAuth, I'd recommend Sinatra. It's certainly not the only solution (any rack-based framework will do), but it provides the needed functionality with minimal overhead.

Google shared contact API

I am looking for Googoe Shared conatact API ruby gem.
Is there any good ruby gem for Google Shared Contacts API?
This is the only one I have found but it has not been maintained for a while. It might need some work.
This blog post has a discussion of how to do it on your own if you are interested (and it is more recent).

Test ruby/rails facebook api

Are there any ruby gems that mock out the requests and responses against the Facebook Graph Api? I would start using fakeweb but I feel as though this may have been done.

How can I connect to Google using oauth with Ruby?

there are oauth and oauth2 gems, but I have not found an example to connect to google with oauth
The officially supported method is to use Signet. The README contains the example code required to authenticate against the Google OAuth endpoints. See also the Google API Client for Ruby. If you have any questions on either, don't hesitate to ping me. I'm supporting both libraries.
Signet will also work for other OAuth providers. An official OmniAuth plugin is also available.
Try omniauth instead.
https://github.com/intridea/omniauth
Here's An excellent screencast showing how its used:
http://railscasts.com/episodes/241-simple-omniauth

Resources