{"id":36849175,"url":"https://github.com/gildemberg-santos/bitrix24","last_synced_at":"2026-01-12T14:36:03.295Z","repository":{"id":39732800,"uuid":"494570886","full_name":"gildemberg-santos/bitrix24","owner":"gildemberg-santos","description":"Uma gem Ruby para integração com a API do Bitrix24. Permite criar e manipular leads, contatos e outras entidades dentro do seu ambiente Bitrix24 de forma prática e extensível.","archived":false,"fork":false,"pushed_at":"2025-04-07T03:10:01.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T03:25:16.816Z","etag":null,"topics":["api","integration","ruby"],"latest_commit_sha":null,"homepage":"","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/gildemberg-santos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-20T18:34:12.000Z","updated_at":"2025-04-07T03:07:42.000Z","dependencies_parsed_at":"2023-01-28T23:46:04.278Z","dependency_job_id":"e4c5504e-3206-4795-8af8-18e6145bbb9f","html_url":"https://github.com/gildemberg-santos/bitrix24","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/gildemberg-santos/bitrix24","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildemberg-santos%2Fbitrix24","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildemberg-santos%2Fbitrix24/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildemberg-santos%2Fbitrix24/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildemberg-santos%2Fbitrix24/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gildemberg-santos","download_url":"https://codeload.github.com/gildemberg-santos/bitrix24/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildemberg-santos%2Fbitrix24/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["api","integration","ruby"],"created_at":"2026-01-12T14:36:03.191Z","updated_at":"2026-01-12T14:36:03.270Z","avatar_url":"https://github.com/gildemberg-santos.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitrix24 Ruby Gem\n\n[![Build Status](https://github.com/gildemberg-santos/bitrix24/actions/workflows/main.yml/badge.svg)](https://github.com/gildemberg-santos/bitrix24/actions)\n\nUma gem Ruby para integração com a API do Bitrix24. Permite criar e manipular leads, contatos e outras entidades dentro do seu ambiente Bitrix24 de forma prática e extensível.\n\n---\n\n## 📦 Instalação\n\n### Adicionando ao Gemfile\n\n```ruby\ngem \"bitrix24\", git: \"https://github.com/gildemberg-santos/bitrix24\"\n```\n\nDepois execute:\n\n```bash\nbundle install\n```\n\n### Instalação manual\n\n```bash\ngem install pkg/bitrix24-x.y.z.gem\n```\n\n\u003e 💡 Substitua `x.y.z` pela versão apropriada do pacote `.gem`.\n\n---\n\n## 🚀 Uso\n\n### Criar um lead\n\n```ruby\nrequire \"bitrix24\"\n\nBitrix24::Services::CreateLead.call(\n  url: \"https://your-domain.bitrix24.com.br/rest/1/your-api-key\",\n  lead_fields: {\n    TITLE: \"Título do lead\",\n    NAME: \"Nome\",\n    LAST_NAME: \"Sobrenome\",\n    PHONE: \"Telefone\",\n    EMAIL: \"E-mail\",\n    SOURCE_ID: \"Origem do lead\",\n    STATUS_ID: \"Status do lead\",\n    ASSIGNED_BY_ID: \"ID do responsável\",\n    UF_CRM_1619027320: \"Campo personalizado\"\n  },\n  contact_fields: [{ name: \"TEST_DD\", value: \"VALOR_ADD\" }]\n)\n```\n\n---\n\n## ⚠️ Forma Antiga (Depreciada)\n\n```ruby\nrequire \"bitrix24\"\n\nbitrix24 = Bitrix24::Common.new\n\nfields_merge = bitrix24.merge_fields_and_custom_fields(\n  {\n    TITLE: \"Título do lead\",\n    NAME: \"Nome\",\n    LAST_NAME: \"Sobrenome\",\n    PHONE: \"Telefone\",\n    EMAIL: \"E-mail\",\n    SOURCE_ID: \"Origem do lead\",\n    STATUS_ID: \"Status do lead\",\n    ASSIGNED_BY_ID: \"ID do responsável\",\n    UF_CRM_1619027320: \"Campo personalizado\"\n  },\n  [{ name: \"TEST_DD\", value: \"VALOR_ADD\" }]\n)\n\nbitrix24.url = \"https://your-domain.bitrix24.com.br/rest/1/your-api-key\"\nbitrix24.add(fields_merge)\n```\n\n\u003e ⚠️ Essa abordagem foi substituída pela interface mais moderna via `Bitrix24::Services::CreateLead`.\n\n---\n\n## 🛠 Desenvolvimento\n\nApós clonar o repositório, configure o ambiente de desenvolvimento com:\n\n```bash\nbin/setup\n```\n\nPara abrir um console interativo com a gem carregada:\n\n```bash\nbin/console\n```\n\n### Instalar a gem localmente\n\n```bash\nbundle exec rake install\n```\n\n### Publicar nova versão\n\n1. Atualize a versão em `lib/bitrix24/version.rb`\n2. Execute:\n\n```bash\nbundle exec rake release\n```\n\nEsse processo:\n\n- Cria uma tag no Git com a nova versão\n- Envia os commits e a tag para o GitHub\n- Publica o pacote no [RubyGems.org](https://rubygems.org)\n\n---\n\n## 🤝 Contribuindo\n\nContribuições são sempre bem-vindas! Para reportar bugs ou sugerir melhorias, utilize o [repositório oficial no GitHub](https://github.com/gildemberg-santos/bitrix24).\n\nTodos os participantes devem seguir o nosso [Código de Conduta](https://github.com/gildemberg-santos/bitrix24/blob/master/CODE_OF_CONDUCT.md).\n\n---\n\n## 📄 Licença\n\nEste projeto está disponível sob os termos da [Licença MIT](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildemberg-santos%2Fbitrix24","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgildemberg-santos%2Fbitrix24","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildemberg-santos%2Fbitrix24/lists"}