{"id":29035940,"url":"https://github.com/hostari/bento_client","last_synced_at":"2026-01-20T16:26:47.425Z","repository":{"id":44456371,"uuid":"505370264","full_name":"hostari/bento_client","owner":"hostari","description":"A crystal lang wrapper for the Bentonow API.","archived":false,"fork":false,"pushed_at":"2025-06-25T09:48:36.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T18:16:02.300Z","etag":null,"topics":["bento","crystal"],"latest_commit_sha":null,"homepage":"https://hostari.github.io/bentonow_client/","language":"Crystal","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/hostari.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-20T09:11:03.000Z","updated_at":"2025-06-25T09:46:35.000Z","dependencies_parsed_at":"2024-05-31T23:47:03.657Z","dependency_job_id":"23aae02d-db7c-4e62-aa05-9211cbb547bb","html_url":"https://github.com/hostari/bento_client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hostari/bento_client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostari%2Fbento_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostari%2Fbento_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostari%2Fbento_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostari%2Fbento_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hostari","download_url":"https://codeload.github.com/hostari/bento_client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hostari%2Fbento_client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28607043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bento","crystal"],"created_at":"2025-06-26T12:36:28.720Z","updated_at":"2026-01-20T16:26:47.407Z","avatar_url":"https://github.com/hostari.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bento_client\n\nA crystal lang wrapper for the [Bento API](https://bentonow.com/).\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     bento_client:\n       github: hostari/bento_client\n   ```\n\n2. Run `shards install`\n\n## Usage\n\nSet the following api keys in `.env`: `publishable_key`, `secret_key`, `site_uuid`.\n\n```crystal\nrequire \"bento_client\"\n```\n\nTo build a new Bento client:\n```crystal\npublishable_key = ENV[\"BENTO_PUBLISHABLE_KEY\"]\nsecret_key = ENV[\"BENTO_SECRET_KEY\"]\nclient = Bento::Client.new(publishable_key, secret_key)\n```\n\n## Endpoints\nMost useful available Bento API resources are implemented.\n\n1. [Creating an Event](https://docs.bentonow.com/reference-api/create-events) - for single or batch processing of events such as adding users and other user information, adding tags to already exisiting users, or adding fields to existing users.\n\n```crystal\nbody = {\n  events: [\n    {\n      type: \"$completed_onboarding\",\n      email: \"test@test.com\"\n    },\n    {\n      type: \"$completed_onboarding\",\n      email: \"test@test.com\",\n      fields: {\n        first_name: \"Jesse\",\n        last_name: \"Pinkman\"\n      }\n    },\n    {\n      email: \"test@test.com\",\n      type: \"$purchase\",\n      fields: {\n        first_name: \"Jesse\"\n      },\n      details: {\n        unique: {\n          key: \"test123\"\n        },\n        value: {\n          currency: \"USD\",\n          amount: 8000\n        },\n        cart: {\n          items: [\n            {\n              product_sku: \"SKU123\",\n              product_name: \"Test\",\n              quantity: 100\n            }\n          ],\n          abandoned_checkout_url: \"https://test.com\"\n        }\n      }\n    }\n  ]\n}.to_json\nsite_uuid = ENV[\"BENTO_SITE_UUID\"]\nevent = Bento::Event.create_event(publishable_key, secret_key, site_uuid, body)\n```\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/hostari/bento_client/fork\u003e)\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 a new Pull Request\n\n## Contributors\n\n- [Pauline De Polonia](https://github.com/paula4230) - creator\n- [Xavi Ablaza](https://github.com/xaviablaza) - maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostari%2Fbento_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhostari%2Fbento_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhostari%2Fbento_client/lists"}