{"id":24160441,"url":"https://github.com/simpleweb/saasrunner-client-ruby","last_synced_at":"2026-05-09T12:32:46.833Z","repository":{"id":16392471,"uuid":"19143214","full_name":"simpleweb/saasrunner-client-ruby","owner":"simpleweb","description":"Ruby bindings for the SaaS Runner API","archived":false,"fork":false,"pushed_at":"2014-09-11T15:51:42.000Z","size":356,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-02-12T10:57:16.647Z","etag":null,"topics":[],"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/simpleweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-25T11:02:13.000Z","updated_at":"2014-09-11T15:46:41.000Z","dependencies_parsed_at":"2022-09-22T14:25:52.688Z","dependency_job_id":null,"html_url":"https://github.com/simpleweb/saasrunner-client-ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsaasrunner-client-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsaasrunner-client-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsaasrunner-client-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2Fsaasrunner-client-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleweb","download_url":"https://codeload.github.com/simpleweb/saasrunner-client-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241455385,"owners_count":19965602,"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","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":"2025-01-12T16:14:11.146Z","updated_at":"2026-05-09T12:32:41.808Z","avatar_url":"https://github.com/simpleweb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaasRunner\n\n[![Build Status](https://travis-ci.org/simpleweb/saasrunner-client-ruby.svg?branch=master)](https://travis-ci.org/simpleweb/saasrunner-client-ruby)\n\nRuby client library for the SaaS Runner REST API\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'saas_runner'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install saas_runner\n\n## Usage\n\nRefer to the [SaaS Runner API docs](http://docs.saasrunner.apiary.io/) for more information on the API.\n\nFirst create a new client object with your SaaS Runner API key\n\n```ruby\nclient = SaasRunner::Client.new(api_key: 'YOUR API KEY')\n```\n\nAnd then call the relevant resource\n\n### Subscribers\n\nCreate a new subscriber\n\n```ruby\nclient.subscribers.create!(subscriber_uid: 'ABC123')\n```\n\n### Transactions\n\nCreate a new transaction charge using the three digit letter code for the currency (eg USD or GBP)\n\n```ruby\nclient.transactions.charge!(subscriber_uid: 'ABC123', transaction_uid: '123', amount_in_cents: 1000, currency: 'USD')\n```\n\nCreate a new transaction refund\n\n```ruby\nclient.transactions.refund!(subscriber_uid: 'ABC123', transaction_uid: '124', amount_in_cents: 150, currecny: 'USD')\n```\n\n### Activations\n\n```ruby\nclient.activations.create!(subscriber_uid: 'ABC123')\n```\n\n### Events\n\nList all events\n\n```ruby\nclient.events.index\n```\n\nList a single event\n\n```ruby\nclient.events.show(568)\n```\n\nDelete an event\n\n```ruby\nclient.events.destroy!(568)\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsaasrunner-client-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleweb%2Fsaasrunner-client-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsaasrunner-client-ruby/lists"}