ZibalPlatform 1.0.0

Install-Package ZibalPlatform -Version 1.0.0
dotnet add package ZibalPlatform --version 1.0.0
<PackageReference Include="ZibalPlatform" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ZibalPlatform --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZibalPlatform, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ZibalPlatform as a Cake Addin
#addin nuget:?package=ZibalPlatform&version=1.0.0

// Install ZibalPlatform as a Cake Tool
#tool nuget:?package=ZibalPlatform&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Zibal Platform


Sample Code

Wallet Balance Sample Code

using ZibalPlatform;






string bearerToken = "Bearer Token";

            try
            {
                string url = "v1/wallet/balance"; // url

                var myData = new {
                    id = 1010101
                };

                var zibal = new Zibal(bearerToken);

                var httpResponse = zibal.PostToZibal(url, bearerToken, JsonConvert.SerializeObject(myData));  // get Response
                using (var streamReader = new StreamReader(httpResponse.GetResponseStream())) // make stream reader
                {
                    var responseText = streamReader.ReadToEnd(); // read Response
                    dynamic item = JsonConvert.DeserializeObject<dynamic>(responseText);

                    Console.WriteLine(item);

                    // you can access result with item.result, message with item.message and data with item.data
                }
            }
            catch (WebException ex)
            {
                Console.WriteLine(ex.Message); // print exception error
            }
  • .NETStandard 2.0

    • No dependencies.

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.0 331 5/10/2020