{"id":20355767,"url":"https://github.com/zackproser/wealthengine-go","last_synced_at":"2025-07-06T23:34:23.014Z","repository":{"id":81144107,"uuid":"103977835","full_name":"zackproser/wealthengine-go","owner":"zackproser","description":"A fully featured Golang SDK for the WealthEngine API","archived":false,"fork":false,"pushed_at":"2017-09-19T03:09:35.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"github","last_synced_at":"2025-01-15T01:07:38.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/zackproser.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":"2017-09-18T18:43:23.000Z","updated_at":"2017-09-18T21:08:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd035c47-1e15-4811-80ed-810a0672332d","html_url":"https://github.com/zackproser/wealthengine-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fwealthengine-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fwealthengine-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fwealthengine-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackproser%2Fwealthengine-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackproser","download_url":"https://codeload.github.com/zackproser/wealthengine-go/tar.gz/refs/heads/github","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241889439,"owners_count":20037509,"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":[],"created_at":"2024-11-14T23:13:59.186Z","updated_at":"2025-03-04T17:30:43.683Z","avatar_url":"https://github.com/zackproser.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WealthEngine Go\n\nA fully featured WealthEngine client delivered in a Golang SDK, for quickly getting up and running with the [WealthEngine REST API](https://dev.wealthengine.com/api).\n\n# Getting Started\n```bash\ngo get github.com/zackproser/wealthengine-go\n```\n\n```go\npackage main\n\nimport (\n  \"encoding/json\"\n  \"fmt\"\n\n  \"github.com/zackproser/wealthengine\"\n)\n\nfunc main() {\n  // Instantiate a new WealthEngine API client,\n  // Passing in your APIKey and the environment you want to hit (\"Prod\" or \"Dev\")\n  w := wealthengine.New(\"278s6sfd-z2cy-569h-f35g-7dwa4090g2\", \"Prod\")\n\n  // Score a profile by address\n  score, scoreErr := w.ScoreOneByAddress(\"proser\", \"zachary\", \"3089 nunya\", \"business\", \"berkeley\", \"CA\", \"94704\", \"my-model\")\n\n  // Score a profile by email\n  //score, scoreErr := w.ScoreOneByEmail(\"zackproser@gmail.com\", \"proser\", \"zachary\", \"my-model\")\n\n  // Score a profile by phone\n  //score, scoreErr := w.ScoreOneByPhone(\"15103267023\", \"zachary\", \"proser\", \"my-model\")\n\n  if scoreErr != nil {\n    fmt.Printf(\"scoreErr: %v\", scoreErr)\n  }\n\n  scoreJson, mErr := json.Marshal(score)\n\n  if mErr != nil {\n    fmt.Printf(\"Score err: %v\", mErr)\n  }\n\n  fmt.Printf(\"Score: \\n\\n%v\", string(scoreJson))\n\n    // Match a profile by email and name\n    //profile, err := w.MatchOneByEmail(\"zackproser@gmail.com\", \"Zachary\", \"Proser\", \"full\")\n\n    // Match a profile by address\n    //profile, err := w.MatchOneByAddress(\"proser\", \"zachary\", \"somewhere\", \"else\", \"berkeley\", \"CA\", \"94704\", \"basic\")\n\n    // Match a profile by phone\n    profile, err := w.MatchOneByPhone(\"15553339021\", \"zachary\", \"proser\", \"basic\")\n\n    if err != nil {\n      fmt.Printf(\"err: %v\\n\", err)\n    }\n\n    profileJson, mErr := json.Marshal(profile)\n\n    if mErr != nil {\n      fmt.Printf(\"Error marshaling JSON: %v\\n\", mErr)\n    }\n\n    fmt.Printf(\"json: \\n%v\", string(profileJson))\n\n    // Prepare a batch processing request with several BatchLookups\n    b := wealthengine.Batch{\n      []wealthengine.BatchLookup{{\"Proser\", \"Zach\", \"1234 st\", \"apt 1\", \"somecity\", \"CA\", \"94711\", \"zackproser@gmail.com\", \"1235103333\"}, {\"Someone\", \"Else\", \"1234 st\", \"apt 1\", \"Anaheim\", \"CA\", \"947111\", \"zackproser@gmail.com\", \"1235103333\"}, {\"Quabbity\", \"Ashwitz\", \"Wakka st\", \"apt 1\", \"Columbia\", \"MD\", \"947111\", \"zackproser@gmail.com\", \"47472727889\"}},\n    }\n\n    fmt.Printf(\"Batch: %v\\n\", b)\n\n    // Batch jobs return a job ID for looking up the status and results later\n    batchJobId, err := w.FindMany(\u0026b, \"full\")\n\n    fmt.Printf(\"BatchID: %v\", batchJobId)\n\n    if batchJobId != nil {\n      //Use the batch ID to check on the status\n      status, statusErr := w.GetBatchJobStatus(batchJobId)\n\n      if statusErr != nil {\n        fmt.Printf(\"StatusErr: %v\\n\", statusErr)\n      }\n\n      fmt.Printf(\"Status: %v\\n\", status)\n\n      // Use the batch ID to get the final job results\n      results, finalErr := w.GetBatchJobResults(batchJobId)\n\n      if finalErr != nil {\n        fmt.Printf(\"finalErr: %v\", finalErr)\n      }\n\n      resultsJson, resultsJsonErr := json.Marshal(results)\n\n      if resultsJsonErr != nil {\n        fmt.Printf(\"resultsJsonErr: %v\", resultsJsonErr)\n      }\n\n      fmt.Printf(\"Results: %v\", string(resultsJson))\n    }\n}\n```\n\n# Documentation\n\n[Godocs](https://godoc.org/github.com/zackproser/wealthengine-go)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackproser%2Fwealthengine-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackproser%2Fwealthengine-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackproser%2Fwealthengine-go/lists"}