{"id":17236900,"url":"https://github.com/gonace/intercom","last_synced_at":"2025-03-26T01:42:54.650Z","repository":{"id":179794256,"uuid":"655769939","full_name":"gonace/Intercom","owner":"gonace","description":".NET Client for Intercom!","archived":false,"fork":false,"pushed_at":"2024-01-20T10:28:16.000Z","size":259,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T23:16:09.644Z","etag":null,"topics":["intercom","intercom-client","sdk"],"latest_commit_sha":null,"homepage":"","language":"C#","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/gonace.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-19T15:00:30.000Z","updated_at":"2024-07-29T14:15:36.000Z","dependencies_parsed_at":"2024-12-03T20:51:31.403Z","dependency_job_id":null,"html_url":"https://github.com/gonace/Intercom","commit_stats":null,"previous_names":["gonace/intercom"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonace%2FIntercom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonace%2FIntercom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonace%2FIntercom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gonace%2FIntercom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gonace","download_url":"https://codeload.github.com/gonace/Intercom/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245573841,"owners_count":20637670,"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":["intercom","intercom-client","sdk"],"created_at":"2024-10-15T05:37:12.708Z","updated_at":"2025-03-26T01:42:54.632Z","avatar_url":"https://github.com/gonace.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Intercom API client library for .NET\n![Nuget](https://img.shields.io/nuget/v/intercom-net)\n![Nuget](https://img.shields.io/nuget/dt/intercom-net)\n\n## Supported APIs\n\n## Install\nYou can download the intercom client nuget.\n[https://www.nuget.org/packages/Intercom](https://www.nuget.org/packages/intercom-net)\n\n## Usage\n\u003e For the full documentation please read our [wiki](https://github.com/gonace/intercom/wiki)!\n\n### Simple\n\u003e If you're using .NET (former .NET Core) and utilizing the default hosting and startup pattern (`Microsoft.Extensions.Hosting`) you use [`Intercom.Extensions.Hosting`](https://github.com/gonace/Intercom.Extensions.Hosting).\n\nThe easiest way to use the client is to run `.Configure()`, this will create a static instance (`Intercom`) of the client that can be used throughout your application.\n\nThe `Configure()` method can be initiated in two ways,\n* `Intercom.Configure(\"baseUri\", \"bearerToken\")`\n* `Intercom.Configure(\"baseUri\", \"bearerToken\", apiVersion)`\n\n#### Examples\n```c#\nusing Intercom.Constants;\nusing Intercom.Models;\nusing Intercom.Request.Companies;\n\nIntercom.Configure(Url.Production, \"bearerToken\");\n\nvar company = new Company\n{\n    Name = \"Obscured\",\n    CompanyId = \"Obscured_1\",\n    Plan = new Plan\n    {\n        Name = \"Enterprise\"\n    },\n    Size = 10,\n    Attributes = new Dictionary\u003cstring, object\u003e\n    {\n        {\"foo\", \"bar\"},\n        {\"bar\", \"foo\"}\n    }\n};\nvar request = new UpsertRequest(company);\nvar response = Intercom.Companies.Upsert(request)\n\n```\n```c#\nusing Intercom.Constants;\nusing Intercom.Models;\nusing Intercom.Request.Companies;\n\nIntercom.Configure(Url.Production, \"bearerToken\", Version.Latest)\n\nvar company = new Company\n{\n    Name = \"Obscured\",\n    CompanyId = \"Obscured_1\",\n    Plan = new Plan\n    {\n        Name = \"Enterprise\"\n    },\n    Size = 10,\n    Attributes = new Dictionary\u003cstring, object\u003e\n    {\n        {\"foo\", \"bar\"},\n        {\"bar\", \"foo\"}\n    }\n};\nvar request = new UpsertRequest(company);\nvar response = Intercom.Companies.Upsert(request)\n```\n\n### Advanced\nIf you only need access to one (or a few) clients you're able to configure each client individually.\n\n#### Examples\n```c#\nusing Intercom.Constants;\nusing Intercom.Models;\nusing Intercom.Request.Companies;\n\npublic class SomeClass\n{\n    private readonly ICompaniesClient _client;\n\n    public SomeClass()\n    {\n        _client = new CompaniesClient(Url.Production, \"bearerToken\")\n    }\n\n    public Company Upsert()\n    {\n        var company = new Company\n        {\n            Name = \"Obscured\",\n            CompanyId = \"Obscured_1\",\n            Plan = new Plan\n            {\n                Name = \"Enterprise\"\n            },\n            Size = 10,\n            Attributes = new Dictionary\u003cstring, object\u003e\n            {\n                {\"foo\", \"bar\"},\n                {\"bar\", \"foo\"}\n            }\n        };\n        var request = new UpsertRequest(company);\n        var response = Intercom.Companies.Upsert(request)\n\n        return response;\n    }\n\n    public async Task\u003cCompany\u003e UpsertAsync()\n    {\n        var company = new Company\n        {\n            Name = \"Obscured\",\n            CompanyId = \"Obscured_1\",\n            Plan = new Plan\n            {\n                Name = \"Enterprise\"\n            },\n            Size = 10,\n            Attributes = new Dictionary\u003cstring, object\u003e\n            {\n                {\"foo\", \"bar\"},\n                {\"bar\", \"foo\"}\n            }\n        };\n        var request = new UpsertRequest(company);\n        var response = await Intercom.Companies.UpsertAsync(request)\n\n        return response;\n    }\n}\n```\n\n```c#\nusing Intercom.Constants;\nusing Intercom.Models;\nusing Intercom.Request.Companies;\n\npublic class SomeClass\n{\n    private readonly ICompaniesClient _client;\n\n    public SomeClass()\n    {\n        _client = new CompaniesClient(Url.Production, \"bearerToken\", Version.Latest)\n    }\n    \n    public Company Upsert()\n    {\n        var company = new Company\n        {\n            Name = \"Obscured\",\n            CompanyId = \"Obscured_1\",\n            Plan = new Plan\n            {\n                Name = \"Enterprise\"\n            },\n            Size = 10,\n            Attributes = new Dictionary\u003cstring, object\u003e\n            {\n                {\"foo\", \"bar\"},\n                {\"bar\", \"foo\"}\n            }\n        };\n        var request = new UpsertRequest(company);\n        var response = Intercom.Companies.Upsert(request)\n\n        return response;\n    }\n\n    public async Task\u003cCompany\u003e UpsertAsync()\n    {\n        var company = new Company\n        {\n            Name = \"Obscured\",\n            CompanyId = \"Obscured_1\",\n            Plan = new Plan\n            {\n                Name = \"Enterprise\"\n            },\n            Size = 10,\n            Attributes = new Dictionary\u003cstring, object\u003e\n            {\n                {\"foo\", \"bar\"},\n                {\"bar\", \"foo\"}\n            }\n        };\n        var request = new UpsertRequest(company);\n        var response = await Intercom.Companies.UpsertAsync(request)\n\n        return response;\n    }\n}\n```\n\n### Constants\n#### Url\nThe url constant is used to identify what production environment that will be used.\n\n* `Production =\u003e \"https://api.intercom.io/\"`\n* `ProductionAustralia =\u003e \"https://api.au.intercom.io/\"`\n* `ProductionEurope =\u003e \"https://api.eu.intercom.io/\"` \n\n\n#### Version\nThe version constant is used to identify what Intercom API version (Intercom-Version header) will be used, `Latest` always points to the highest available.\n\n * `Latest`\n * `Version_2_9`\n * `Version_2_8`\n * `Version_2_7`\n\n## Development\n### TODO\n\n## Contributing\nPull requests and features are happily considered! By participating in this project you agree to abide by the [Code of Conduct](http://contributor-covenant.org/version/2/0).\n\n### To contribute\n\nFork, then clone the repo:\n```\ngit clone git@github.com:your-username/Intercom.git\n```\nPush to your fork and [submit a pull request](https://github.com/gonace/Intercom/compare/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonace%2Fintercom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgonace%2Fintercom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgonace%2Fintercom/lists"}