Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ для Π°Π²Ρ‚ΠΎΠΌΠ°Ρ‚ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΏΡ€ΠΎΠ΄Π°ΠΆΠΈ Π’Π°ΡˆΠΈΡ… ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ΠΎΠ²
Panel
panelIconIdatlassian-info
iconpanelIconfalse:info:
titleThis page has been translated automatically
bgColor#E3FCEF

Please read the Terms of Use for Materials on ZennoLab

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;
}

...

Exception - an internal error has occurred, if the error persistsrepeats, you should contact ZennoLab support.

...

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.

...