⚙️
api.megoru.ru
  • This is public API
  • Reference
    • Hangman API
      • Get random word
    • Giveaway API
      • Get winners
    • Money API
      • Autorisation
      • Transaction
      • Family
Powered by GitBook
On this page
  • Registration
  • Login

Was this helpful?

  1. Reference
  2. Money API

Autorisation

After successful registration or authentication, the API returns an object containing user data and a token. This token must be used for authentication with other endpoints.

Registration

POST https://api.megoru.ru/api/registration

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

name

string

Name of the user

password

string

Password

email

string

User Email

Response

{
  "name": "John Doe",
  "personal_id": 2,
  "family_id": null,
  "email": "example1@example.com",
  "token": "7EYeebTjKL4jNmEml19TJ3TktSqUNJrT07Qk9XVkeVx5-Es5zKUNIiJd51kftGQyUMs7PP0at8sKTlEGMo6AGKmsEiyJrPev-eWs"
}

Login

POST https://api.megoru.ru/api/login

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

email

string

User Email

password

string

User password

Response

{
  "name": "John Doe",
  "email": "example@example.com",
  "personal_id": 1,
  "family_id": 3,
  "token": "JgPuSVN2Okplx-k1X1E6WBkCGKSA0XCj9S5t-6bNPXN1uUnKshOhASBL8BrU7Tjb4nBg2M0WwoawE26bKzvTUCxsoqZwvOO3vjUr",
  "transactions": [
    {
      "category": "Salary",
      "amount": 1000,
      "date": "2024-12-02",
      "description": null,
      "path_icon": "xmark.circle",
      "deleted": false,
      "personal": {
        "id": 1,
        "name": "Личный счёт",
        "date": "2024-12-02",
        "blocked": false,
        "family": false
      },
      "transaction_id": 1,
      "transaction_type": "INCOME",
      "state_id": 1
    },
    {
      "category": "Salary",
      "amount": 1000,
      "date": "2024-12-02",
      "path_icon": "xmark.circle",
      "description": null,
      "deleted": false,
      "personal": {
        "id": 3,
        "name": "Семейный счёт",
        "date": "2024-12-06",
        "blocked": false,
        "family": true
      },
      "transaction_id": 4,
      "transaction_type": "INCOME",
      "state_id": 1
    }
  ]
}

PreviousMoney APINextTransaction

Last updated 3 months ago

Was this helpful?