{"id":17377460,"url":"https://github.com/ridem/pe-accounting-ruby-client","last_synced_at":"2025-10-04T00:55:35.606Z","repository":{"id":56887723,"uuid":"80414008","full_name":"ridem/pe-accounting-ruby-client","owner":"ridem","description":"Ruby Client for PE Accounting's API","archived":false,"fork":false,"pushed_at":"2017-02-10T02:05:28.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T00:09:02.658Z","etag":null,"topics":["pe-accounting","ruby-client"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ridem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-30T11:03:06.000Z","updated_at":"2024-01-19T10:24:25.000Z","dependencies_parsed_at":"2022-08-21T00:50:50.315Z","dependency_job_id":null,"html_url":"https://github.com/ridem/pe-accounting-ruby-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ridem/pe-accounting-ruby-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridem%2Fpe-accounting-ruby-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridem%2Fpe-accounting-ruby-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridem%2Fpe-accounting-ruby-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridem%2Fpe-accounting-ruby-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ridem","download_url":"https://codeload.github.com/ridem/pe-accounting-ruby-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ridem%2Fpe-accounting-ruby-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267481978,"owners_count":24094488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pe-accounting","ruby-client"],"created_at":"2024-10-16T05:22:11.250Z","updated_at":"2025-10-04T00:55:30.566Z","avatar_url":"https://github.com/ridem.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PE Accounting Ruby Client\n\n[![Gem](https://img.shields.io/gem/v/pe_accounting.svg?style=flat-square)](https://rubygems.org/gems/pe_accounting)\n\nA simple low-level wrapper for PE Accounting's public API.\nIt's publicly available at https://my.accounting.pe/api/v1/doc\n\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'pe_accounting'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install pe_accounting\n\n## Usage\n\n```ruby\nrequire 'pe_accounting'\n\n# Initialize the API, the 3rd parameter is one of (:json, :xml) and sets how the wrapper will interact with the API.\n\u003e\u003e api = PeAccounting::Client.new('your-api-token', 123)\n=\u003e \u003cPeAccounting::Client:0x007fd6b7ac74d0 @company_id=123, @format=:json, @token=\"your-api-token\", @endpoint=\"https://my.accounting.pe/api/v1/\"\u003e\n\n# Fetch a list of all the given company's clients. Returns a ruby Array or Hash, depending on the ressource's specifications\n\u003e\u003e clients = api.get('client')\n=\u003e [ {\"id\"=\u003e12345, \"foreign-id\"=\u003e\"\", \"name\"=\u003e\"fdsmfkls\", \"contact\"=\u003e\"fslmdkfsdmlkf\", \"address\"=\u003e{\"address1\"=\u003e\"sdfmsdlmfksdm\", \"address2\"=\u003e\"\", \"zip-code\"=\u003e\"12345\", \"state\"=\u003e\"msdlfkdsmlk\", \"country\"=\u003e\"sdflkdslkfj\"}, \"email\"=\u003e\"sdflkjsfs@fdsd.fr\", \"country-code\"=\u003e\"FR\", \"accountnr\"=\u003e0, \"payment-days\"=\u003e14, \"orgno\"=\u003e\"123456-1234\", \"phone\"=\u003e\"+33123456789\", \"user\"=\u003e{\"id\"=\u003e12345}, \"delivery-type\"=\u003e\"Email\", \"vat-nr\"=\u003e\"\", \"template\"=\u003e{\"id\"=\u003e1234}, \"active\"=\u003etrue}, {\"id\"=\u003e9876, \"foreign-id\"=\u003e\"\", \"name\"=\u003e\"fdsmfkls\", \"contact\"=\u003e\"fslmdkfsdmlkf\", \"address\"=\u003e{\"address1\"=\u003e\"sdfmsdlmfksdm\", \"address2\"=\u003e\"\", \"zip-code\"=\u003e\"12345\", \"state\"=\u003e\"msdlfkdsmlk\", \"country\"=\u003e\"sdflkdslkfj\"}, \"email\"=\u003e\"sdflkjsfs@fdsd.fr\", \"country-code\"=\u003e\"FR\", \"accountnr\"=\u003e0, \"payment-days\"=\u003e14, \"orgno\"=\u003e\"123456-1235\", \"phone\"=\u003e\"+33123456789\", \"user\"=\u003e{\"id\"=\u003e9875}, \"delivery-type\"=\u003e\"Email\", \"vat-nr\"=\u003e\"\", \"template\"=\u003e{\"id\"=\u003e1234}, \"active\"=\u003etrue} ]\n\njohn = clients.first\njohn[\"name\"] = \"John Doe\"\n\n## Updates a client with the new name\napi.post(\"client/#{john['id']}\", john)\n\n```\nAccepted methods: `get`, `put`, `post`, `delete`. Only `put` and `post` accept a payload.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ridem/pe-accounting-ruby-client.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridem%2Fpe-accounting-ruby-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fridem%2Fpe-accounting-ruby-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fridem%2Fpe-accounting-ruby-client/lists"}