Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse
titleThis page has been translated automatically

We want to provide you with the latest help content in your language as soon as possible. This page has been translated automatically and may contain grammatical errors or inaccuracies. We want this content to be useful to you. Please let us know at the bottom of this page if this information was helpful.

View the original article in Russian: API Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ для Π°Π²Ρ‚ΠΎΠΌΠ°Ρ‚ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΏΡ€ΠΎΠ΄Π°ΠΆΠΈ Π’Π°ΡˆΠΈΡ… ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ΠΎΠ²

The WebService API is located at: https://userarea.zennolab.com/BotStore.asmx

...

Code Block
public class BotInfo
{
  // unique identifier //of ΡƒΠ½ΠΈΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉthe ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€bot
Π±ΠΎΡ‚Π°     public int Id;
     // bot имяname
Π±ΠΎΡ‚Π°     public string Name;
     // Π½Π°Π·Π²Π°Π½ΠΈΠ΅file name
Ρ„Π°ΠΉΠ»Π°     public string FileName;
     // when ΠΊΠΎΠ³Π΄Π°created
создан     public DateTime Created;
     // ΠΊΠΎΠ³Π΄Π°when was послСднийlast Ρ€Π°Π·updated
ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½     public DateTime Modified;
     // your вашcomment
ΠΊΠΎΠΌΠΌΠ΅Π½Ρ‚Π°Ρ€ΠΈΠΉ     public string Comment;
     // size Ρ€Π°Π·ΠΌΠ΅Ρ€in Π²bytes
Π±Π°ΠΉΡ‚Π°Ρ…     public int Size;
}

GetSales

...

Code Block
public class SaleInfo
{
 // unique identifier //of ΡƒΠ½ΠΈΠΊΠ°Π»ΡŒΠ½Ρ‹ΠΉthe ΠΈΠ΄Π΅Π½Ρ‚ΠΈΡ„ΠΈΠΊΠ°Ρ‚ΠΎΡ€sale
ΠΏΡ€ΠΎΠ΄Π°ΠΆΠΈ     public int Id;
     // Date of Π΄Π°Ρ‚Π°sale
ΠΏΡ€ΠΎΠ΄Π°ΠΆΠΈ     public DateTime SaleDateTime;
     // customer email
покупатСля     public string CustomerEmail;
     // bots id Π±ΠΎΡ‚ΠΎΠ²separated by Ρ‡Π΅Ρ€Π΅Π·commas
Π·Π°ΠΏΡΡ‚ΡƒΡŽ     public string Bots;
     // Π±Ρ‹Π»was there Π»ΠΈa Refund for ΠΏΠΎthis Π΄Π°Π½Π½ΠΎΠΉsale
ΠΏΡ€ΠΎΠ΄Π°ΠΆΠ΅     public bool HasRefund;
     // sale is ΠΏΡ€ΠΎΠ΄Π°ΠΆΠ°a являСтсяsubscription подпискойor ΠΈΠ»ΠΈnot
Π½Π΅Ρ‚     public bool IsSubscription;
     // when ΠΊΠΎΠ³Π΄Π°the subscription заканчиваСтсяends
подписка     public DateTime? SubscriptionDueDate;
     // in Π²which ΠΊΠ°ΠΊΠΈΡ…products ΠΏΡ€ΠΎΠ΄ΡƒΠΊΡ‚Π°Ρ…the ΠΌΠΎΠΆΠ΅Ρ‚project Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒcan ΠΏΡ€ΠΎΠ΅ΠΊΡ‚work
     // 1 - Ρ‚ΠΎΠ»ΡŒΠΊΠΎonly Π²in ZennoBox, 2 - Ρ‚ΠΎΠ»ΡŒΠΊΠΎonly Π²in ZennoPoster, 3 - Π²in ZennoBox ΠΈand ZennoPoster
     public int ForProducts;
}

...

Upon successful registration, you will receive get a record of the form: "Pass: password", where password is the password of the registered user from the personal account.

...

If the operation is successful, you will receive get a record of the form: "Pass: password", where password is the user's password from the personal account.

...