Agendor Ruby CRM integration
Clone or download
filipenasc Merge pull request #12 from ResultadosDigitais/remove-raised-errors
Raise response error instead of a string
Latest commit 4c65da1 Apr 3, 2018


Build Status Code Climate

Gem to add contacts, deals and organizations to Agendor CRM


You can get the list of all allowed resources attributes at

Parameters username and password are optional. Token will be used when present (not nil nor '').


person_hash = {
  phones: [
      number: "(00) 0000-0000",
      type: "work"
      number: "(00) 0000-0000",
      type: "mobile"
      number: "(00) 0000-0000",
      type: "fax"
  emails: [""],
  social: {
    facebook: "",
    twitter: "",
    skype: "user",
    linkedIn: ""
  address: {
    postalCode: "12345000",
    country: "Country",
    state: "SC",
    city: "City",
    district: "District",
    streetName: "Street",
    streetNumber: "111",
    additionalInfo: "Info"
  name: "Abc",
  role: "Role",
  cpf: "11122233300",
  phone: "48 9999-9999"
client =, username, password)


organization_hash = {
  nickname: "Organization Name",
  category: 123,
  phones: [
      number: "(11) 99999-5555",
      type: "mobile"
client =, username, password)


deal_hash = {
  title: "Deal Title",
  organization: 123456,
  value: "20000",
  dealStageOrder: 1
client =, username, password)

Contributing to agendor-ruby

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
  • Fork the project.
  • Start a feature/bugfix branch.
  • Commit and push until you are happy with your contribution.
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.