Tarsheed
  1. Users
Tarsheed
  • Auth
    • Create Account
      POST
    • Verifiy Email
      POST
    • Login
      POST
    • Resend Verfication Code
      POST
    • Forget Password Request
      POST
    • Forget password Verify Code
      POST
    • Reset Password
      PATCH
    • Login With Google
      POST
    • Login With Facebook
      POST
  • Users
    • Get all users
      GET
    • Get specific user
      GET
    • Delete user account
      DELETE
    • Update user data
      PUT
    • Change user password
      PUT
    • Get Recomendation
      GET
    • Get Avarage Cost For Spesfic User
      GET
    • Get The Power Saving Modes Settings
      GET
    • Update the Usage of the power saving mode
      PATCH
  • Reports
    • GetUserReport
      GET
  • Room
    • Create New Room
      POST
    • Update Room
      PATCH
    • Delete Room
      DELETE
    • Get Room Details
      GET
    • Get all Rooms for spesfic user
      GET
  • Device
    • Create New Device
      POST
    • Update Device
      PATCH
    • Delete Device
      DELETE
    • Get All Devices id For IOT System
      GET
    • Toggle Device Status
      PATCH
  • category
    • get all categories
  • Sensor
    • Create New Sensor
    • Update Sensor
    • Delete Sensor
    • Get All Sensor For Spesfic user
  • Automation
    • Add New Automation
    • Get all Automation for Spesfic User
    • Delete Spesfic Automation
    • Update Spesfic Automation
    • Apply Automation Manually
  1. Users

Get Avarage Cost For Spesfic User

Testing
GET
users/get/cost/avarage

Request

Header Params
Authorization
string 
optional
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'users/get/cost/avarage' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI'

Responses

🟢200Success
application/json
Body
array of:
_id
string 
required
first_name
string 
required
last_name
string 
required
username
string 
required
email
string 
required
Example
{
    "all": [
        {
            "_id": "679e83f48e118c4079b251c3",
            "first_name": "ALI",
            "last_name": "HASSAN",
            "username": "ALIJS2",
            "email": "aliismailh08@gmail.com"
        },
        {
            "_id": "679e934257d62d69169edbbe",
            "first_name": "ALI ISMAIL",
            "last_name": "HASSAN",
            "username": "ALIJS",
            "email": "aliismail.js@gmail.com"
        },
        {
            "_id": "679e9407a2f9a6602408ae28",
            "first_name": "ALI ISMAIL",
            "last_name": "HASSAN",
            "username": "ALIJS",
            "email": "aliismail.js2@gmail.com"
        },
        {
            "_id": "679ea0813adc9e6b55977c75",
            "first_name": "mahmoud",
            "last_name": "atef",
            "username": "mahmoudatef",
            "email": "mahmoud.atef3167@gmail.com"
        },
        {
            "_id": "679ec90181c09b149627c83b",
            "first_name": "mahmoud",
            "last_name": "atef",
            "username": "tatweer.programming",
            "email": "tatweer.programming@gmail.com"
        },
        {
            "_id": "679ec90181c09b149627c83d",
            "first_name": "mahmoud",
            "last_name": "atef",
            "username": "tatweer.programming",
            "email": "tatweer.programming@gmail.com"
        },
        {
            "_id": "679edbf4cbea636b506d5ffc",
            "first_name": "محمود",
            "last_name": "عاطف",
            "username": "mahmodatef.317",
            "email": "mahmodatef.317@gmail.com"
        },
        {
            "_id": "679edbf5cbea636b506d5ffe",
            "first_name": "محمود",
            "last_name": "عاطف",
            "username": "mahmodatef.317",
            "email": "mahmodatef.317@gmail.com"
        },
        {
            "_id": "679eddfacbea636b506d6006",
            "first_name": "test",
            "last_name": "account",
            "username": "mahmoud.atef.work",
            "email": "mahmoud.atef.work@gmail.com"
        },
        {
            "_id": "679edf04cbea636b506d600f",
            "first_name": "test",
            "last_name": "account2",
            "username": "takweed.programming",
            "email": "takweed.programming@gmail.com"
        },
        {
            "_id": "679edf04cbea636b506d6011",
            "first_name": "test",
            "last_name": "account2",
            "username": "takweed.programming",
            "email": "takweed.programming@gmail.com"
        },
        {
            "_id": "67b35e6cbbe816481891a911",
            "first_name": "takweed",
            "last_name": "programming",
            "username": "takweed.programming",
            "email": "mahmodatef.3171@gmail.com"
        },
        {
            "_id": "67ca383fd0dc02b981647d28",
            "first_name": "atef",
            "last_name": "Mahmoud",
            "username": "user1",
            "email": "user1@gmail.com"
        },
        {
            "_id": "67ccdda52c059b15363dfe1b",
            "first_name": "atef",
            "last_name": "Mahmoud",
            "username": "tarsheed.electricity",
            "email": "tarsheed.electricity@gmail.com"
        },
        {
            "_id": "67ccf28b11c2e65f395f96fd",
            "first_name": "tofy",
            "last_name": "tofy",
            "username": "tofy",
            "email": "tofy@gmail.com"
        },
        {
            "_id": "67ce1a67a1b7cf3589b4f75f",
            "first_name": "eeee",
            "last_name": "tttt",
            "username": "mahmod",
            "email": "mahmod@gmai.com"
        },
        {
            "_id": "67ce26405c0d9e3d29fb59bb",
            "first_name": "rrttr",
            "last_name": "rrttt",
            "username": "mahmod.atef.31.07",
            "email": "mahmod.atef.31.07@gmail.com"
        },
        {
            "_id": "67ce26f55c0d9e3d29fb59be",
            "first_name": "hxxhgk",
            "last_name": "mad",
            "username": "mah",
            "email": "mah@gmail.com"
        },
        {
            "_id": "67d79538ad2213042fef4387",
            "first_name": "Matilde",
            "last_name": "O'Kon",
            "username": "Lee Heathcote",
            "email": "Princess55@gmail.com"
        },
        {
            "_id": "67d79585ad2213042fef438b",
            "first_name": "Matilde",
            "last_name": "O'Kon",
            "username": "Lee Heathcote",
            "email": "Princess555555555555555555555555@gmail.com"
        },
        {
            "_id": "67d7995b2e5f877bb5854fba",
            "first_name": "Matilde",
            "last_name": "O'Kon",
            "username": "Lee Heathcote",
            "email": "ahmedmohammedsalah200@gmail.com"
        }
    ]
}
Previous
Get Recomendation
Next
Get The Power Saving Modes Settings
Built with