MoizGillani.WhatsappCloudApiSDK
1.0.1
dotnet add package MoizGillani.WhatsappCloudApiSDK --version 1.0.1
NuGet\Install-Package MoizGillani.WhatsappCloudApiSDK -Version 1.0.1
<PackageReference Include="MoizGillani.WhatsappCloudApiSDK" Version="1.0.1" />
paket add MoizGillani.WhatsappCloudApiSDK --version 1.0.1
#r "nuget: MoizGillani.WhatsappCloudApiSDK, 1.0.1"
// Install MoizGillani.WhatsappCloudApiSDK as a Cake Addin #addin nuget:?package=MoizGillani.WhatsappCloudApiSDK&version=1.0.1 // Install MoizGillani.WhatsappCloudApiSDK as a Cake Tool #tool nuget:?package=MoizGillani.WhatsappCloudApiSDK&version=1.0.1
Getting Started with WhatsApp Cloud API
Introduction
Welcome to the WhatsApp API from Meta.
Individual 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:
Name | Description |
---|---|
Version | Latest Graph API version. For example: v13.0 |
User-Access-Token | Your user access token after signing up at developers.facebook.com. |
WABA-ID | Your WhatsApp Business Account (WABA) ID. |
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. |
Business-ID | Your Business' ID. Once you have your Phone-Number-ID, make a Get Business Profile request to get your Business' ID. |
Recipient-Phone-Number | Phone number that you want to send a WhatsApp message to. |
Media-ID | ID for the media to send a media message or media template message to your customers. |
Media-URL | URL for the media to download media content. |
Install the Package
If you are building with .NET CLI tools then you can also use the following command:
dotnet add package MoizGillani.WhatsappCloudApiSDK --version 1.0.1
You can also view the package at: https://www.nuget.org/packages/MoizGillani.WhatsappCloudApiSDK/1.0.1
Initialize the API Client
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
Parameter | Type | Description |
---|---|---|
Version |
string |
Default: "v13.0" |
Environment |
Environment | The API environment. <br> Default: Environment.Production |
Timeout |
TimeSpan |
Http client timeout.<br>Default: TimeSpan.FromSeconds(100) |
AccessToken |
string |
The OAuth 2.0 Access Token to use for API requests. |
The API client can be initialized as follows:
WhatsAppCloudAPI.Standard.WhatsAppCloudAPIClient client = new WhatsAppCloudAPI.Standard.WhatsAppCloudAPIClient.Builder()
.AccessToken("AccessToken")
.Environment(WhatsAppCloudAPI.Standard.Environment.Production)
.Version("v13.0")
.Build();
Authorization
This API uses OAuth 2 Bearer token
.
List of APIs
Classes Documentation
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- APIMatic.Core (>= 0.2.6)
- Microsoft.CSharp (>= 4.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 160 | 6/1/2023 |