{"id":26223366,"url":"https://github.com/stellaraf/go-sfdc","last_synced_at":"2025-03-12T17:34:34.990Z","repository":{"id":173451534,"uuid":"650322751","full_name":"stellaraf/go-sfdc","owner":"stellaraf","description":"Salesforce REST \u0026 SOQL client for Golang. Note: Mostly tailored to Stellar's specific needs, but should work for others.","archived":false,"fork":false,"pushed_at":"2025-02-23T16:03:21.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-23T17:21:47.495Z","etag":null,"topics":["go","salesforce"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause-clear","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stellaraf.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}},"created_at":"2023-06-06T20:32:02.000Z","updated_at":"2025-02-23T16:03:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4f7daed-aabe-4119-b96e-91ea6bc26b9f","html_url":"https://github.com/stellaraf/go-sfdc","commit_stats":null,"previous_names":["stellaraf/go-sfdc"],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fgo-sfdc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fgo-sfdc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fgo-sfdc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fgo-sfdc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellaraf","download_url":"https://codeload.github.com/stellaraf/go-sfdc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243262210,"owners_count":20262965,"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","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":["go","salesforce"],"created_at":"2025-03-12T17:32:13.211Z","updated_at":"2025-03-12T17:34:34.960Z","avatar_url":"https://github.com/stellaraf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![stellar](https://res.cloudinary.com/stellaraf/image/upload/v1604277355/stellar-logo-gradient.png?width=300)\n\n## `go-sfdc`\n\n[![Tests](https://img.shields.io/github/actions/workflow/status/stellaraf/go-sfdc/tests.yml?style=for-the-badge\u0026label=Tests)](https://github.com/stellaraf/go-sfdc/actions/workflows/tests.yml) [![Go Reference](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://pkg.go.dev/go.stellar.af/go-sfdc) [![GitHub Tag](https://img.shields.io/github/v/tag/stellaraf/go-sfdc?style=for-the-badge\u0026label=Version)](https://github.com/stellaraf/go-sfdc/tags)\n\n## Installation\n\n```\ngo get -u go.stellar.af/go-sfdc\n```\n\n\n## Testing Environment Variables\n\nThe following environment variables must be set (and valid) for tests to run.\n\n| Key                          | Description                                          |\n| :--------------------------- | :--------------------------------------------------- |\n| `SFDC_CLIENT_ID`             | Connected App OAuth2 Client ID (Consumer Key)        |\n| `SFDC_CLIENT_SECRET`         | Connected App OAuth2 Client Secret (Consumer Secret) |\n| `SFDC_ENCRYPTION_PASSPHRASE` | AES-256 key for encrypting cache values              |\n| `SFDC_AUTH_URL`              | Salesforce Authentication URL                        |\n| `SFDC_TEST_DATA`             | JSON string of test data, see below                  |\n\n### Test Data\n\nThe following values are used in unit tests to fetch and validate data through the `go-sfdc` client methods.\n\n| Key                     | Description                                                                                  |\n| :---------------------- | :------------------------------------------------------------------------------------------- |\n| `accountId`             | ID of pre-existing Account object                                                            |\n| `userId`                | ID of pre-existing User account                                                              |\n| `groupId`               | ID of pre-existing group (Queue)                                                             |\n| `accountName`           | Name of Account used in the `accountId` field                                                |\n| `contactId`             | ID of pre-existing contact that is associated with the Account used in the `accountId` field |\n| `accountCustomFieldKey` | Field name of a custom field on the Account object                                           |\n| `caseCustomFieldKey`    | Field name of a custom field on the Case object                                              |\n| `userEmail`             | Email address of the User used in the `userId` field                                         |\n| `serviceContractId`     | ID of pre-existing Service Contract object                                                   |\n| `leadId`                | ID of pre-existing Lead object                                                               |\n| `picklistField`         | API Name of pre-existing Picklist. Cannot be a managed Picklist.                             |\n| `picklistObject`        | API Name of pre-existing object that contains the Picklist referenced in `picklistField`.    |\n\n#### Example\n\n```json\n{\n    \"accountId\": \"001A000001abcde123\",\n    \"userId\": \"005A000001xyz7890\",\n    \"groupId\": \"00G1A00000abcdef12\",\n    \"accountName\": \"Acme Corp, Inc.\",\n    \"contactId\": \"003A000001pqrst456\",\n    \"accountCustomFieldKey\": \"go_sfdc_Test_Field__c\",\n    \"caseCustomFieldKey\": \"go_sfdc_Test_Field__c\",\n    \"userEmail\": \"person@example.com\",\n    \"serviceContractId\": \"0SCA00000lmnop789\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fgo-sfdc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellaraf%2Fgo-sfdc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fgo-sfdc/lists"}