{"id":15512354,"url":"https://github.com/raihan2006i/iubenda_api","last_synced_at":"2025-10-12T09:31:15.729Z","repository":{"id":48744609,"uuid":"219786246","full_name":"raihan2006i/iubenda_api","owner":"raihan2006i","description":"Iubenda Ruby Client","archived":false,"fork":false,"pushed_at":"2022-10-06T07:51:01.000Z","size":48,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T01:58:40.371Z","etag":null,"topics":["iubenda","iubenda-api","iubenda-policy","iubenda-privacy","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/raihan2006i.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-05T16:02:59.000Z","updated_at":"2023-01-04T23:03:49.000Z","dependencies_parsed_at":"2022-09-13T17:51:27.162Z","dependency_job_id":null,"html_url":"https://github.com/raihan2006i/iubenda_api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/raihan2006i/iubenda_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2006i%2Fiubenda_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2006i%2Fiubenda_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2006i%2Fiubenda_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2006i%2Fiubenda_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raihan2006i","download_url":"https://codeload.github.com/raihan2006i/iubenda_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raihan2006i%2Fiubenda_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007457,"owners_count":26084313,"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-10-11T02:00:06.511Z","response_time":55,"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":["iubenda","iubenda-api","iubenda-policy","iubenda-privacy","ruby-client"],"created_at":"2024-10-02T09:53:36.495Z","updated_at":"2025-10-12T09:31:15.435Z","avatar_url":"https://github.com/raihan2006i.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Ruby Client for Iubenda HTTP APIs\n\nThis ruby client is an unofficial client\n\n[![Gem Version](https://badge.fury.io/rb/iubenda_api.svg)](https://badge.fury.io/rb/iubenda_api) [![Maintainability](https://api.codeclimate.com/v1/badges/4dbfa40f66bcac425417/maintainability)](https://codeclimate.com/github/raihan2006i/iubenda_api/maintainability) [![CircleCI](https://circleci.com/gh/raihan2006i/iubenda_api.svg?style=svg)](https://circleci.com/gh/raihan2006i/iubenda_api)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'iubenda_api'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install iubenda_api\n\n## Usage\n\nThis gem expects that you have already set `IUBENDA_API_KEY` environment variable. Use your Iubenda `Private key`\n\n```ruby\n# Subject\nsubject_id = 'testsubject'\nIubendaApi::ConsentSolution::Subject.create(\n  id: subject_id,\n  email: \"john.doe@example.com\",\n  first_name: \"John\",\n  last_name: \"Doe\",\n  full_name: \"John Doe\",\n  verified: false\n) # -\u003e #\u003cIubendaApi::ConsentSolution::Subject id=\"testsubject\" timestamp=\"2019-11-05T11:33:20.039Z\"\u003e\n\nIubendaApi::ConsentSolution::Subject.show(id) # -\u003e #\u003cIubendaApi::ConsentSolution::Subject email=\"john.doe@example.com\" first_name=\"John\" full_name=nil id=\"testsubject\" last_name=\"Doe\" owner_id=\"10240\" preferences=nil timestamp=\"2019-11-05T11:33:20+00:00\" verified=false\u003e\nIubendaApi::ConsentSolution::Subject.list # -\u003e [#\u003cIubendaApi::ConsentSolution::Subject email=\"john.doe@example.com\" first_name=\"John\" full_name=nil id=\"testsubject\" last_name=\"Doe\" owner_id=\"10240\" preferences=nil timestamp=\"2019-11-05T11:33:20+00:00\" verified=false\u003e, ...]\nIubendaApi::ConsentSolution::Subject.update(id, email: \"john.snow@example.com\", first_name: \"John\", last_name: \"Snow\", full_name: 'John Snow') # -\u003e #\u003cIubendaApi::ConsentSolution::Subject id=\"testsubject\" timestamp=\"2019-11-05T11:33:20.039Z\"\u003e\n\n# Consent\nIubendaApi::ConsentSolution::Consent.create(\n  subject: {\n    id: 'testsubject',\n    email: 'subject@example.com',\n    first_name: \"John\",\n    last_name: \"Doe\",\n    verified: false\n  },\n  preferences: {\n    newsletter: false,\n    privacy_policy: true\n  }\n) # -\u003e #\u003cIubendaApi::ConsentSolution::Consent id=\"00b654b3-ce4d-45c9-a8aa-9450551579c0\" timestamp=\"2019-11-05T11:33:20.039Z\"\u003e\n\nIubendaApi::ConsentSolution::Consent.show('00b654b3-ce4d-45c9-a8aa-9450551579c0') # -\u003e #\u003cIubendaApi::ConsentSolution::Consent id=\"00b654b3-ce4d-45c9-a8aa-9450551579c0\", ...\u003e\nIubendaApi::ConsentSolution::Consent.list(limit: 1) # -\u003e [#\u003cIubendaApi::ConsentSolution::Consent id=\"00b654b3-ce4d-45c9-a8aa-9450551579c0\", ...\u003e, ...]\n\n# Legal Notice\n# Single legal notice without multi-language content:\nIubendaApi::ConsentSolution::LegalNotice.create(\n  identifier: \"privacy_policy\",\n  content: \"privacy policy content\"\n) # -\u003e #\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"privacy_policy\" version=1 timestamp=\"2019-12-13T14:56:00Z\"\u003e\n \n# Single legal notice with multi-language content:\nIubendaApi::ConsentSolution::LegalNotice.create(\n  identifier: \"privacy_policy\",\n  content: {\n   en: \"privacy policy content\",\n   it: \"contenuto della privacy policy\"\n  }\n) # -\u003e #\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"privacy_policy\" version=1 timestamp=\"2019-12-13T14:56:00Z\"\u003e\n\n# Multiple legal notice without multi-language content:\nIubendaApi::ConsentSolution::LegalNotice.create_multiple([\n  {\n    identifier: \"privacy_policy\",\n    content: \"privacy policy content\"\n  },\n  {\n    identifier: \"cookie_policy\",\n    content: \"cookie policy content\"\n  }\n]) # -\u003e [#\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"privacy_policy\" version=1 timestamp=\"2019-12-13T14:56:00Z\"\u003e, #\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"cookie_policy\" version=1 timestamp=\"2019-12-13T14:56:00Z\"\u003e]\n\n# Multiple legal notice with multi-language content:\nIubendaApi::ConsentSolution::LegalNotice.create_multiple([\n  {\n    identifier: \"privacy_policy\",\n    content: {\n      en: \"privacy policy content\",\n      it: \"contenuto della privacy policy\"\n    }\n  },\n  {\n    identifier: \"cookie_policy\",\n    content: {\n      en: \"cookie policy content\",\n      it: \"contenuto della cookie policy\"\n    }\n  },\n]) # -\u003e [#\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"privacy_policy\" version=1 timestamp=\"2019-12-13T14:56:00Z\"\u003e, #\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"cookie_policy\" version=1 timestamp=\"2019-12-13T14:56:00Z\"\u003e]\n\nIubendaApi::ConsentSolution::LegalNotice.versions('privacy_policy') # -\u003e [#\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"privacy_policy\" version=1 timestamp=\"2019-11-07T16:18:05+00:00\" content=#\u003cHashie::Mash\u003e, ...]\nIubendaApi::ConsentSolution::LegalNotice.version('privacy_policy', 1) # -\u003e #\u003cIubendaApi::ConsentSolution::LegalNotice identifier=\"privacy_policy\" version=1 timestamp=\"2019-11-07T16:18:05+00:00\" content=#\u003cHashie::Mash\u003e \nIubendaApi::ConsentSolution::LegalNotice.list(limit: 1) # -\u003e [#\u003cIubendaApi::ConsentSolution::LegalNotice content=#\u003cHashie::Mash it=\"https://example.com/privacy_policy.pdf\"\u003e id=\"10298_privacy_policy\" identifier=\"privacy_policy\" owner_id=\"1000\" timestamp=\"2019-11-22T14:12:06+00:00\" version=1\u003e, ...]\n\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/raihan2006i/iubenda_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the IubendaApi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/iubenda_api/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2006i%2Fiubenda_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraihan2006i%2Fiubenda_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraihan2006i%2Fiubenda_api/lists"}