{"id":16073612,"url":"https://github.com/tegon/salesforce-lead","last_synced_at":"2026-04-28T05:33:55.483Z","repository":{"id":36389294,"uuid":"40694181","full_name":"tegon/salesforce-lead","owner":"tegon","description":"Create a Lead in Salesforce","archived":false,"fork":false,"pushed_at":"2017-04-05T12:12:57.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T17:16:14.778Z","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/tegon.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":"2015-08-14T03:35:16.000Z","updated_at":"2017-04-05T12:12:59.000Z","dependencies_parsed_at":"2022-09-06T08:21:05.698Z","dependency_job_id":null,"html_url":"https://github.com/tegon/salesforce-lead","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tegon/salesforce-lead","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegon%2Fsalesforce-lead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegon%2Fsalesforce-lead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegon%2Fsalesforce-lead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegon%2Fsalesforce-lead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tegon","download_url":"https://codeload.github.com/tegon/salesforce-lead/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tegon%2Fsalesforce-lead/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32212818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"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":[],"created_at":"2024-10-09T08:21:40.527Z","updated_at":"2026-04-28T05:33:55.460Z","avatar_url":"https://github.com/tegon.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# salesforce-lead\nCreate Leads using Salesforce API\n\n[![Gem Version](https://badge.fury.io/rb/salesforce-lead.svg)](http://badge.fury.io/rb/salesforce-lead)\n\n# Usage\n\n### Constructor\n---\n\n```ruby\n\tattributes: {\n\t\tlast_name: String\n\t\temail: String\n\t\tcompany: String\n\t\tjob_title: String\n\t\tphone: String\n\t\twebsite: String\n\t}\n\tcredentials: {\n\t\ttoken: String\n\t\tinstance_url: String\n\t}\n```\n\n#### Example\n\n```ruby\nSalesforce::Lead.new({\n    last_name: 'Doe',\n    email: 'john@doe.com',\n    company: 'Foo Bar Inc.',\n    job_title: 'Developer',\n    phone: '55011998012345',\n    website: 'http://johndoe.com'\n  }, { \n    token: 'Token123ABC', \n    instance_url: 'http://n123.salesforce.com' \n})\n```\n\n### Methods\n---\n\n#### create\n\nSends the Lead to Salesforce API. Returns false if an error has ocurred or true if the request was succesfull.\n\n#### success?\nCheck if the request succeed\n\n### Attributes\n---\n\n#### errors\nWhen the request fails, the errors are stored in this array\n\n##### Example\n```ruby\n[{ message: 'Bad Request', code: 'BAD_REQUEST' }]\n```\n\n# Development\n\nInstall the dependencies\n\n```bash\nbundle install\n```\n\nRun the test suite\n\n```bash\nrake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegon%2Fsalesforce-lead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftegon%2Fsalesforce-lead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftegon%2Fsalesforce-lead/lists"}