Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Nekiplay/QIWI-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QIWI-API

Codacy Badge

Using Wallet API

Create:

QIWI.Wallet wallet = new QIWI.Wallet("QIWI API Key");

Get Balance and get phone:

string phone = wallet.Identification.Phone();
double balrub = wallet.Balance.RUB(phone);
double balusd = wallet.Balance.USD(phone);

Send money for other QIWI Wallet:

bool done = wallet.Balance.Transfer.QIWIRUB("phone", 1.0, "comment");

Using Donate QIWI API

Create:

QIWI.Donation donation = new QIWI.Donation("donate.qiwi.com token", NewDonates);

Get link for donate:

string link = donation.GetDonateLink("nickname", "senderName", "Message", ammount);

Get new donate:

private void NewDonates(QIWI.Donation.Event response)
{
    Console.WriteLine("ID: " + response.eventExtId);
    Console.WriteLine("Nickname: " + response.attributes.DONATION_SENDER);
    Console.WriteLine("Ammount: " + response.attributes.DONATION_AMOUNT);
    Console.WriteLine("Currency: " + response.attributes.DONATION_CURRENCY);
    Console.WriteLine("Message: " + response.attributes.DONATION_MESSAGE);
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages