{"id":16732573,"url":"https://github.com/antonmi/leetchi-api-ruby-sdk","last_synced_at":"2025-09-01T01:32:35.469Z","repository":{"id":7298178,"uuid":"8614494","full_name":"antonmi/leetchi-api-ruby-sdk","owner":"antonmi","description":"Ruby Gem for interacting with the Leetchi API.","archived":false,"fork":false,"pushed_at":"2013-03-06T09:38:45.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T21:36:10.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://doc.api.leetchi.com/","language":"Ruby","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antonmi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-06T22:12:15.000Z","updated_at":"2014-10-07T13:57:41.000Z","dependencies_parsed_at":"2022-08-29T16:51:00.412Z","dependency_job_id":null,"html_url":"https://github.com/antonmi/leetchi-api-ruby-sdk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/antonmi/leetchi-api-ruby-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fleetchi-api-ruby-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fleetchi-api-ruby-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fleetchi-api-ruby-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fleetchi-api-ruby-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonmi","download_url":"https://codeload.github.com/antonmi/leetchi-api-ruby-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmi%2Fleetchi-api-ruby-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273064342,"owners_count":25039259,"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-08-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2024-10-12T23:45:40.624Z","updated_at":"2025-09-01T01:32:35.450Z","avatar_url":"https://github.com/antonmi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# leetchi-api-ruby-sdk\n\nThe gem for interacting with Leetchi API.\nSee the [API documentation](http://doc.api.leetchi.com/) for more details on the API.\n\nTested on the following versions of Ruby: 1.9.2, 1.9.3, 2.0.0\n\n## Code Status\n[![Build Status](https://travis-ci.org/Leetchi/leetchi-api-ruby-sdk.png?branch=master)](https://travis-ci.org/Leetchi/leetchi-api-ruby-sdk)\n[![Code Climate](https://codeclimate.com/github/Leetchi/leetchi-api-ruby-sdk.png)](https://codeclimate.com/github/Leetchi/leetchi-api-ruby-sdk)\n[![Dependency Status](https://gemnasium.com/Leetchi/leetchi-api-ruby-sdk.png)](https://gemnasium.com/Leetchi/leetchi-api-ruby-sdk)\n\n## Requirements\n\nThis gem uses mainly ruby stdlib and the *json* gem.\n\n## Configuration\n\nPlease note that the gem configuration process change between 0.0.1 and 1.0.0.\n\n### Version 0.0.1\n\nSetup the following ENV:\n\n```\nENV['LEETCHI_API_BASE_URL'] = \"https://api-preprod.leetchi.com\" # once you've run your test using the preproduction environment use the production one\nENV['LEETCHI_KEY_PATH'] = \"abcd\"                                # the full path to your leetchi key\nENV['LEETCHI_PASSPHRASE'] = \"efgh\"                              # you key's passphrase (leave blank if none)\nENV['LEETCHI_PARTNER_ID'] = \"myID\"                              # your Leetchi API ID\n```\n\n### Version 1.0.0\n\nYou can now call the Leetchi.configure method like this:\n\n```ruby\nLeetchi.configure do |c|\n\t\tc.preproduction = true\n    c.partner_id = 'example'\n    c.key_path = './spec/support-files/example.pem'\n    c.key_password = ''\nend\n```\n\nThe **preproduction** attribute let you specify if you want to use the preproduction api endpoint.\n\nThe **partner_id** is the id that was issue to you during you registration process.\n\nThe **key_path** and **key_password** arguments are here to let you use the key you've created before the registration process.\n\nThis configure method can of course be use to define a Ruby on Rails initialiser.\n\n## Usage\n\nThe gem implements the following resources:  \n- Beneficiary  \n- Card  \n- Contribution  \n- Expense  \n- Operation  \n- Recurrent Contribution (only available in preproduction)  \n- Strong Authentication  \n- Transfer  \n- User  \n- Wallet  \n- Withdrawal  \n\nEach resource has specifics methods such has `create`, `details`, `update`, etc. Those methods must be called with an ID and / or an Object matching the Leetchi API.\nCalling those methods return the Leetchi API response has an object. Every executions are made synchronously.\n\n### Example\n\nThis example creates a user and returns its informations:\n\n```ruby\nLeetchi::User.create({\n    'Tag' =\u003e 'test',\n    'Email' =\u003e 'my@email.com',\n    'FistName' =\u003e 'Jack',\n    'LastName' =\u003e 'Nelson',\n    'CanRegisterMeanOfPayment' =\u003e true\n})\n```\n\nThis example returns a specific user's data:\n\n```ruby\nLeetchi::User.details(123)\n```\n\n### Tests\nMake sure that you have run: ```bundle install```  \nThen you just have to run the rake task ```rake test``` to run all the test suite.  \nFeel free to report any test failure by creating an issue on the [Gem's Github](https://github.com/Leetchi/leetchi-api-ruby-sdk/issues)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmi%2Fleetchi-api-ruby-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonmi%2Fleetchi-api-ruby-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmi%2Fleetchi-api-ruby-sdk/lists"}