Usage
Client Instantiation
Eloquant uses Basic HTTP Authentication for retrieving data from Eloqua. You need to supply the username, site/company name, and password when initializing the client.
Eloquant::Client.new(username: "username", sitename: "mycompany", password: "password")
Alternatively, you can store these variables in your environment file:
ELOQUA_USERNAME='username'
ELOQUA_SITENAME='mycompany'
ELOQUA_PASSWORD='password'
Available Endpoints
Accounts
describe_accounts- Return the list of fields for an Accountdescribe_accounts_csv- Return the list of fields for an Account as a CSV formatted string
Activities
describe_activities- Return the list of fields for an Activitydescribe_activities_csv- Return the list of fields for an Activity as a CSV formatted string
Campaign Responses
describe_campaign_responses- Return the list of fields for a Campaign Responsedescribe_campaign_responses_csv- Return the list of fields for a Campaign Response as a CSV formatted string
Campaigns
describe_campaigns- Return the list of fields for a Campaigndescribe_campaigns_csv- Return the list of fields for a Campaign as a CSV formatted string
Contacts
describe_contacts- Return the list of fields for a Contactdescribe_contacts_csv- Return the list of fields for a Contact as a CSV formatted string
Custom Objects
- No describe is available for Custom Objects
Events
- No describe is available for Events
External Activities
- No describe is available for External Activities
Opportunities
describe_opportunities- Return the list of fields for an Opportunitydescribe_opportunities_csv- Return the list of fields for an Opportunity as a CSV formatted string
Installation
Add this line to your application's Gemfile:
gem "eloquant"
And then execute:
$ bundle
Or install it yourself as:
$ gem install eloquant
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/jstumbaugh/eloquant. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Eloquant project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Releasing to RubyGems
Use the bin/release script to build, push, and tag this gem.
Todo
- [X] See if we can do OAuth Password Credentials Grant -> Nope
- [X] Notes on using Basic HTTP Authentication
- [X]
env.example?
- [X]
- [ ] Implement endpoints
- [ ] Documentation on options in code and in readme
Endpoints to Implement
- [ ] Accounts
- [ ] Activities
- [ ] Campaign Responses
- [ ] Campaigns
- [ ] Contacts
- [ ] Custom Objects - no describe
- [ ] Events - no describe
- [ ] External Activities - no describe
- [ ] Opportunities