{"id":15612284,"url":"https://github.com/kylefox/spreedly","last_synced_at":"2025-08-18T01:35:53.841Z","repository":{"id":513816,"uuid":"141681","full_name":"kylefox/spreedly","owner":"kylefox","description":"A super-simple python wrapper for Spreedly.com","archived":false,"fork":false,"pushed_at":"2009-05-13T04:39:48.000Z","size":80,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T11:47:15.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"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/kylefox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-03T04:07:03.000Z","updated_at":"2019-08-13T14:05:49.000Z","dependencies_parsed_at":"2022-07-07T18:21:01.529Z","dependency_job_id":null,"html_url":"https://github.com/kylefox/spreedly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kylefox/spreedly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2Fspreedly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2Fspreedly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2Fspreedly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2Fspreedly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kylefox","download_url":"https://codeload.github.com/kylefox/spreedly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kylefox%2Fspreedly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270932578,"owners_count":24670241,"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-17T02:00:09.016Z","response_time":129,"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-03T06:41:26.050Z","updated_at":"2025-08-18T01:35:53.820Z","avatar_url":"https://github.com/kylefox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is an extremely thin wrapper around [pyactiveresource](http://code.google.com/p/pyactiveresource/) which provides easy access to the [Spreedly.com](http://spreedly.com/) API.  pyactiveresource does **all** of the heavy lifting, so make sure you've installed it.  python-spreedly simply adds syntactic sugar.\n\nExample (from console):\n\n\t\u003e\u003e\u003e from spreedly import Spreedly\n\t\u003e\u003e\u003e spreedly = Spreedly(SPREEDLY_API_URL)\n\t\u003e\u003e\u003e customer = spreedly.Subscriber.create({\n\t...     'customer_id': '1234',\n\t...     'screen_name': 'Anthony Hopkins'\n\t... })\n\t\u003e\u003e\u003e customer.attributes['store_credit']\n\tDecimal(\"0.0\")\n\t\nTo retrieve all subscribers:\n\t\n\tspreedly.Subscriber.find()\n\t\nTo retrieve a specific subscriber:\n\n\tspreedly.Subscriber.find(1234)\n\t\nCreating a Complimentary Subscription works slightly different however:\n\n\t\u003e\u003e\u003e customer = spreedly.ComplimentarySubscription.create({ \n\t...     'duration_quantity': 30,\n\t... \t'duration_units': 'days',\n\t... \t'feature_level': 'free' }, { 'subscriber_id':1234 })\n\t\u003e\u003e\u003e customer.active\n\tTrue\n\nTwo dictionaries are sent, one for the complimentary subscription info and one for the subscriber number.\n\t\nFor a full list of what the API does, check out the [Spreedly Integration Reference](http://spreedly.com/manual/integration-reference/).  You might find the [Rails Examples](http://spreedly.com/manual/integration-reference/api-access-using-rails/) helpful, as they use the [ActiveResource](http://api.rubyonrails.org/files/vendor/rails/activeresource/README.html) pattern.\n\nIf you've never heard of them, here's what the fine Spreedly folks do:\n\n\"Spreedly lets you collect recurring and one-time subscription payments simply and securely. Your customers can upgrade and renew with ease while you monitor everything from your dashboard. Spend your time improving your service - not building a billing system.\"","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylefox%2Fspreedly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkylefox%2Fspreedly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkylefox%2Fspreedly/lists"}