{"id":18051732,"url":"https://github.com/apimatic/whatsapp-dotnet-sdk","last_synced_at":"2025-04-05T07:13:41.818Z","repository":{"id":37098166,"uuid":"504440438","full_name":"apimatic/whatsapp-dotnet-sdk","owner":"apimatic","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-17T08:44:29.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-10T14:53:16.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apimatic.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":"2022-06-17T07:44:45.000Z","updated_at":"2024-09-25T22:21:21.000Z","dependencies_parsed_at":"2022-06-24T12:33:57.066Z","dependency_job_id":null,"html_url":"https://github.com/apimatic/whatsapp-dotnet-sdk","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/apimatic%2Fwhatsapp-dotnet-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fwhatsapp-dotnet-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fwhatsapp-dotnet-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apimatic%2Fwhatsapp-dotnet-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apimatic","download_url":"https://codeload.github.com/apimatic/whatsapp-dotnet-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299850,"owners_count":20916193,"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-10-30T22:55:23.813Z","updated_at":"2025-04-05T07:13:41.794Z","avatar_url":"https://github.com/apimatic.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Getting Started with WhatsApp Cloud API\n\n## Introduction\n\nWelcome to the WhatsApp API from Meta.\n\nIndividual developers and existing Business Service Providers (BSPs) can now send and receive messages via the WhatsApp API using a cloud-hosted version of the WhatsApp Business API. Compared to the previous solutions, the cloud-based WhatsApp API is simpler to use and is a more cost-effective way for businesses to use WhatsApp. Please keep in mind the following configurations:\n\n| Name | Description |\n| --- | --- |\n| Version | Latest [Graph API version](https://developers.facebook.com/docs/graph-api/). For example: v13.0 |\n| User-Access-Token | Your user access token after signing up at [developers.facebook.com](https://developers.facebook.com). |\n| WABA-ID | Your WhatsApp Business Account (WABA) ID. |\n| Phone-Number-ID | ID for the phone number connected to the WhatsApp Business API. You can get this with a [Get Phone Number ID request](3184f675-d289-46f1-88e5-e2b11549c418). |\n| Business-ID | Your Business' ID. Once you have your Phone-Number-ID, make a [Get Business Profile request](#99fd3743-46cf-46c4-95b5-431c6a4eb0b0) to get your Business' ID. |\n| Recipient-Phone-Number | Phone number that you want to send a WhatsApp message to. |\n| Media-ID | ID for the media to [send a media message](#0a632754-3788-43bf-b785-ac6a73423d5a) or [media template message](#439c926a-8a6c-4972-ab2c-d99297716da9) to your customers. |\n| Media-URL | URL for the media to [download media content](#cbe5ece3-246c-48f3-b338-074187dfef66). |\n\n## Building\n\nThe generated code uses the Newtonsoft Json.NET NuGet Package. If the automatic NuGet package restore is enabled, these dependencies will be installed automatically. Therefore, you will need internet access for build.\n\n* Open the solution (WhatsAppCloudAPI.sln) file.\n\nInvoke the build process using Ctrl + Shift + B shortcut key or using the Build menu as shown below.\n\nThe build process generates a portable class library, which can be used like a normal class library. The generated library is compatible with Windows Forms, Windows RT, Windows Phone 8, Silverlight 5, Xamarin iOS, Xamarin Android and Mono. More information on how to use can be found at the MSDN Portable Class Libraries documentation.\n\n## Installation\n\nThe following section explains how to use the WhatsAppCloudAPI.Standard library in a new project.\n\n### 1. Starting a new project\n\nFor starting a new project, right click on the current solution from the solution explorer and choose `Add -\u003e New Project`.\n\n![Add a new project in Visual Studio](https://apidocs.io/illustration/cs?workspaceFolder=WhatsApp%20Cloud%20API-CSharp\u0026workspaceName=WhatsAppCloudAPI\u0026projectName=WhatsAppCloudAPI.Standard\u0026rootNamespace=WhatsAppCloudAPI.Standard\u0026step=addProject)\n\nNext, choose `Console Application`, provide `TestConsoleProject` as the project name and click OK.\n\n![Create a new Console Application in Visual Studio](https://apidocs.io/illustration/cs?workspaceFolder=WhatsApp%20Cloud%20API-CSharp\u0026workspaceName=WhatsAppCloudAPI\u0026projectName=WhatsAppCloudAPI.Standard\u0026rootNamespace=WhatsAppCloudAPI.Standard\u0026step=createProject)\n\n### 2. Set as startup project\n\nThe new console project is the entry point for the eventual execution. This requires us to set the `TestConsoleProject` as the start-up project. To do this, right-click on the `TestConsoleProject` and choose `Set as StartUp Project` form the context menu.\n\n![Adding a project reference](https://apidocs.io/illustration/cs?workspaceFolder=WhatsApp%20Cloud%20API-CSharp\u0026workspaceName=WhatsAppCloudAPI\u0026projectName=WhatsAppCloudAPI.Standard\u0026rootNamespace=WhatsAppCloudAPI.Standard\u0026step=setStartup)\n\n### 3. Add reference of the library project\n\nIn order to use the Tester library in the new project, first we must add a project reference to the `TestConsoleProject`. First, right click on the `References` node in the solution explorer and click `Add Reference...`\n\n![Adding a project reference](https://apidocs.io/illustration/cs?workspaceFolder=WhatsApp%20Cloud%20API-CSharp\u0026workspaceName=WhatsAppCloudAPI\u0026projectName=WhatsAppCloudAPI.Standard\u0026rootNamespace=WhatsAppCloudAPI.Standard\u0026step=addReference)\n\nNext, a window will be displayed where we must set the `checkbox` on `Tester.Tests` and click `OK`. By doing this, we have added a reference of the `Tester.Tests` project into the new `TestConsoleProject`.\n\n![Creating a project reference](https://apidocs.io/illustration/cs?workspaceFolder=WhatsApp%20Cloud%20API-CSharp\u0026workspaceName=WhatsAppCloudAPI\u0026projectName=WhatsAppCloudAPI.Standard\u0026rootNamespace=WhatsAppCloudAPI.Standard\u0026step=createReference)\n\n### 4. Write sample code\n\nOnce the `TestConsoleProject` is created, a file named `Program.cs` will be visible in the solution explorer with an empty `Main` method. This is the entry point for the execution of the entire solution. Here, you can add code to initialize the client library and acquire the instance of a Controller class. Sample code to initialize the client library and using Controller methods is given in the subsequent sections.\n\n![Adding a project reference](https://apidocs.io/illustration/cs?workspaceFolder=WhatsApp%20Cloud%20API-CSharp\u0026workspaceName=WhatsAppCloudAPI\u0026projectName=WhatsAppCloudAPI.Standard\u0026rootNamespace=WhatsAppCloudAPI.Standard\u0026step=addCode)\n\n## Initialize the API Client\n\n**_Note:_** Documentation for the client can be found [here.](doc/client.md)\n\nThe following parameters are configurable for the API Client:\n\n| Parameter | Type | Description |\n|  --- | --- | --- |\n| `Version` | `string` | *Default*: `\"v13.0\"` |\n| `Environment` | Environment | The API environment. \u003cbr\u003e **Default: `Environment.Production`** |\n| `Timeout` | `TimeSpan` | Http client timeout.\u003cbr\u003e*Default*: `TimeSpan.FromSeconds(100)` |\n| `AccessToken` | `string` | The OAuth 2.0 Access Token to use for API requests. |\n\nThe API client can be initialized as follows:\n\n```csharp\nWhatsAppCloudAPI.Standard.WhatsAppCloudAPIClient client = new WhatsAppCloudAPI.Standard.WhatsAppCloudAPIClient.Builder()\n    .AccessToken(\"AccessToken\")\n    .Environment(WhatsAppCloudAPI.Standard.Environment.Production)\n    .Version(\"v13.0\")\n    .HttpClientConfig(config =\u003e config.NumberOfRetries(0))\n    .Build();\n```\n\n## Authorization\n\nThis API uses `OAuth 2 Bearer token`.\n\n## List of APIs\n\n* [Business Profiles](doc/controllers/business-profiles.md)\n* [Phone Numbers](doc/controllers/phone-numbers.md)\n* [Two-Step Verification](doc/controllers/two-step-verification.md)\n* [Messages](doc/controllers/messages.md)\n* [Registration](doc/controllers/registration.md)\n* [Media](doc/controllers/media.md)\n\n## Classes Documentation\n\n* [Utility Classes](doc/utility-classes.md)\n* [HttpRequest](doc/http-request.md)\n* [HttpResponse](doc/http-response.md)\n* [HttpStringResponse](doc/http-string-response.md)\n* [HttpContext](doc/http-context.md)\n* [HttpClientConfiguration](doc/http-client-configuration.md)\n* [HttpClientConfiguration Builder](doc/http-client-configuration-builder.md)\n* [IAuthManager](doc/i-auth-manager.md)\n* [ApiException](doc/api-exception.md)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapimatic%2Fwhatsapp-dotnet-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapimatic%2Fwhatsapp-dotnet-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapimatic%2Fwhatsapp-dotnet-sdk/lists"}