RemotePC

      RemotePC™ API Reseller

      • API Reseller
        • Tambah pengguna
        • Undang pengguna
        • Masuk pengguna
        • Daftar pengguna

      RemotePC API menerima permintaan dan mengembalikan respons dalam format 'JSON'. Mekanisme Otentikasi Kunci API digunakan bersama dengan daftar putih IP untuk mengautentikasi API. Untuk semua API, Kunci API harus ditambahkan di header otorisasi.

      Penjual kembali dapat mengirim permintaan API menggunakan Kunci API yang dibuat untuk akun mereka di konsol web.

      Untuk mendapatkan kunci API,

      1. Masuk ke akun Reseller RemotePC Anda.
      2. Pergi ke Akun Saya tab dan klik Kunci API.
      3. Klik Lihat, masukkan kata sandi akun, dan klik Lihat.
      4. Kunci API akan ditampilkan. Klik Salin Kunci untuk menyalin ke papan klip.

      Untuk mengubah Kunci API, klik Ubah. Masukkan kata sandi akun dan klik Lihat untuk melihat kunci API baru.

      1. Tambah pengguna

      URL: https://web1.remotepc.com/rpc-api/reseller/private/user/add

       
                              Method-Type: POST
      Request headers:
      • Authorization: Bearer <api key>
      • Content-type: application/json

      Permintaan

                              string firstName;
      string lastName;
      string invitedUserEmailId;
      string password;
      integer allotedComputers; //optional parameter, default is 0
      boolean sendEmailToUser; //email notification to user is an optional parameter

      Kode respons HTTP

                              200 (Success)
      500 (Server Error)
      400 (Invalid Parameters)
      401 (Unauthorized)
      403 (Invalid request)

      Minta sampel

                              {
        "firstName": "firstname",
        "lastName": "lastname",
        "invitedUserEmailId": "[email protected]",
        "password": "password",
        "allotedComputers": 1,
        "sendEmailToUser": true
      }

      Tanggapan

      Contoh keberhasilan respons

                              {
         "status": "OK",
        "code": 200,
        "message": "SUCCESS"
      }

      Contoh kesalahan respons

                              {
        "status": "BAD_REQUEST",
        "code": 400,
        "errorsCount": 1,
        "errors": [
          {
            "description": "EMAIL_EXISTS"
          }
        ]
      }
                              {
        "status": "UNAUTHORIZED",
        "code": 401,
        "errorsCount": 1,
        "errors": [
          {
            "description": "NOT_AUTHORIZED"
          }
        ]
      }
                              {
         "status": "INTERNAL_SERVER_ERROR",
        "code": 500,
        "errorsCount": 1,
        "errors": [
          {
            "description": "INTERNAL_SERVER_ERROR"
          }
         ]
      }
                              {
        "status": "Forbidden",
        "code": 403,
        "errorsCount": 1,
        "errors": [
          {
            "description": "Forbidden "
          }
        ]
      }

      Deskripsi dapat mencakup:

      1. NAMA_DEPAN_DIBUTUHKAN,
      2. NAMA_BELAKANG_DIPERLUKAN,
      3. EMAILID_DIBUTUHKAN,
      4. MASUKKAN_EMAIL_YANG_VALID,
      5. PASSWORD_DIBUTUHKAN,
      6. KATA_SANDI_TIDAK_VALID

      2. Undang pengguna

      URL: https://web1.remotepc.com/rpc-api/reseller/private/user/invite

       
                              Method-Type: POST
      Request headers:
      • Authorization: Bearer <api key>
      • Content-type: application/json

      Permintaan

                              string invitedUserEmailId;
      integer allotedComputers; //optional parameter, default is 0

      Kode respons HTTP

                              200 (Success)
      500 (Server Error)
      400 (Invalid Parameters)
      401 (Unauthorized)
      403 (Invalid request)

      Minta sampel

                              [
        {
          "invitedUserEmailId": "[email protected]",
           "allotedComputers": 10
        }
      ]

      Contoh keberhasilan respons

                              {
        "status": "OK",
        "code": 200,
        "message": [
           {
            "username": "[email protected]",
            "status": "ALREADY_INVITED"
          },
          {
            "username": "[email protected]",
            "status": "EXISTS"
          },
          {
             "username": "[email protected]",
            "status": "INVITED"
          }
        ]
      }

      Contoh kesalahan respons

                              {
        "status": "UNAUTHORIZED",
        "code": 401,
        "errorsCount": 1,
        "errors": [
           {
            "description": "NOT_AUTHORIZED"
          }
        ]
      }
                              {
        "status": "INTERNAL_SERVER_ERROR",
        "code": 500,
        "errorsCount": 1,
        "errors": [
          {
            "description": "INTERNAL_SERVER_ERROR"
          }
        ]
      }
                              {
        "status": "Forbidden",
        "code": 403,
        "errorsCount": 1,
        "errors": [
           {
            "description": "Forbidden "
          }
        ]
      }

      3. Masuk pengguna

      URL: https://web1.remotepc.com/rpc-api/reseller/private/user/signin

       
                              Method-Type: POST
      Request headers:
      • Authorization: Bearer <api key>
      • Content-type: application/json

      Permintaan

                              string username;
      string password;

      Kode respons HTTP

                              200 (Success)
      500 (Server Error)
      400 (Invalid Parameters)
      401 (Unauthorized)
      403 (Invalid request)

      Minta sampel

                  
                                   {
          "username": "username",
           "password": "password"
       }

      Tanggapan

      Contoh keberhasilan respons

                              {
        "status": "OK",
        "code": 200,
        "message": {
              "rpc_redirect_link":"https://login.remotepc.com/rpcnew/process/autologin/eyJhbGciOiJIUzUxMiJ9"
              }
      }

      Catatan: Gunakan rpc_redirect_link untuk masuk otomatis ke akun.

      Contoh kesalahan respons

                            {
        "status": "BAD_REQUEST",
        "code": 400,
        "errorsCount": 1,
        "errors": [
          {
            "description": "USERNAME_DOES_NOT_EXIST"
          }
        ]
      }
                            {
        "status": "BAD_REQUEST",
        "code": 400,
        "errorsCount": 1,
        "errors": [
          {
            "description": "ACTION_PARENT_ACCOUNT_SUSPENDED"
          }
        ]
      }
                            {
        "status": "BAD_REQUEST",
        "code": 400,
        "errorsCount": 1,
        "errors": [
          {
            "description": "IP_ADDRESS_BLOCKED"
          }
        ]
      }
                            {
        "status": "BAD_REQUEST",
        "code": 400,
        "errorsCount": 1,
        "errors": [
          {
            "description": "CANCELLED_ACCOUNT"
          }
        ]
      }

      Deskripsi dapat mencakup

      EMAILID_DIBUTUHKAN,
      EMAIL_TIDAK_VALID,
      PASSWORD_DIBUTUHKAN,
      USERNAME_DIBUTUHKAN

                            {
        "status": "UNAUTHORIZED",
        "code": 401,
        "errorsCount": 1,
        "errors": [
          {
            "description": "NOT_AUTHORIZED"
          }
        ]
      }
                            {
        "status": "INTERNAL_SERVER_ERROR",
        "code": 500,
        "errorsCount": 1,
        "errors": [
          {
            "description": "INTERNAL_SERVER_ERROR"
          }
        ]
      }

      4. Daftar pengguna

      URL:https://web1.remotepc.com/rpc-api/reseller/private/user/list

       
                              Method-Type: POST
      Request headers:
      • Authorization: Bearer <api key>
      • Content-type: application/json

      Kode respons HTTP

                             200 (Success)
      500 (Server Error)
      401 (Unauthorized)

      Tanggapan

      Contoh keberhasilan respons

                            {
        "status": "OK",
        "code": 200,
        "message":{
        "resellerUsersList": [
            {
              "alloted_computers": 1,
              "created_date": "01-13-2023",
              "isActive": true,
              "utilized_computers": 0,
              "username": "[email protected]"
            },
            {
              "alloted_computers": 1,
              "created_date": "01-13-2023",
              "isActive": true,
              "utilized_computers": 0,
              "username": "[email protected]"
            },
            {
              "alloted_computers": 0,
              "created_date": "01-15-2023",
              "isActive": true,
              "utilized_computers": 0,
              "username": "[email protected]"
            },
            {
              "alloted_computers": 0,
              "created_date": "01-15-2023",
              "isActive": true,
              "utilized_computers": 0,
              "username": "[email protected]"
            },
            {
              "alloted_computers": 0,
              "created_date": "01-15-2023",
              "isActive": true,
              "utilized_computers": 0,
              "username": "[email protected]"
            },
            {
              "alloted_computers": 425,
              "created_date": "01-25-2023",
              "isActive": true,
              "utilized_computers": 0,
              "username": "[email protected]"
            }
          ]
        }
      }

      Contoh kesalahan respons

                            {
        "status": "UNAUTHORIZED",
        "code": 401,
        "errorsCount": 1,
        "errors": [
          {
            "description": "UNAUTHORIZED_ACCESS"
          }
        ]
      }
                            {
        "status": "INTERNAL_SERVER_ERROR",
        "code": 500,
        "errorsCount": 1,
        "errors": [
          {
            "description": "INTERNAL_SERVER_ERROR"
          }
        ]
      }