Class Accounts

    • Method Detail

      • get

        public GetAccountDetailsRequestBuilder get()
        Get account details Get current account balance and other details of your account. You can check also account limit and if account is main one. Main accounts have unlimited privileges and using [User Panel](https://panel.gsmservice.pl) you can create as many subaccounts as you need. The request doesn't contain a body or any parameters. As a successful result an `AccountResponse` object will be returned with properties describing details of current account you are logged in to using API Access Token. This request have to be authenticated using **API Access Token**. In case of an error, the `ErrorResponse` object will be returned with proper HTTP header status code (our error response complies with [RFC 9457](https://www.rfc-editor.org/rfc/rfc7807)).
        Returns:
        The call builder
      • getDirect

        public GetAccountDetailsResponse getDirect()
                                            throws java.lang.Exception
        Get account details Get current account balance and other details of your account. You can check also account limit and if account is main one. Main accounts have unlimited privileges and using [User Panel](https://panel.gsmservice.pl) you can create as many subaccounts as you need. The request doesn't contain a body or any parameters. As a successful result an `AccountResponse` object will be returned with properties describing details of current account you are logged in to using API Access Token. This request have to be authenticated using **API Access Token**. In case of an error, the `ErrorResponse` object will be returned with proper HTTP header status code (our error response complies with [RFC 9457](https://www.rfc-editor.org/rfc/rfc7807)).
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • get

        public GetAccountDetailsResponse get​(java.util.Optional<Options> options)
                                      throws java.lang.Exception
        Get account details Get current account balance and other details of your account. You can check also account limit and if account is main one. Main accounts have unlimited privileges and using [User Panel](https://panel.gsmservice.pl) you can create as many subaccounts as you need. The request doesn't contain a body or any parameters. As a successful result an `AccountResponse` object will be returned with properties describing details of current account you are logged in to using API Access Token. This request have to be authenticated using **API Access Token**. In case of an error, the `ErrorResponse` object will be returned with proper HTTP header status code (our error response complies with [RFC 9457](https://www.rfc-editor.org/rfc/rfc7807)).
        Specified by:
        get in interface SDKMethodInterfaces.MethodCallGetAccountDetails
        Parameters:
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getSubaccount

        public GetSubaccountDetailsRequestBuilder getSubaccount()
        Get subaccount details Check account balance and other details such subcredit balance of a subaccount. Subaccounts are additional users who can access your account services and the details. You can restrict access level and setup privileges to subaccounts using [user panel](https://panel.gsmservice.pl). This endpoint accepts a path `user_login` parameter with empty request body. You should pass the full subaccount login to access its data. As a successful result an `AccountResponse` object will be returned with properties describing details of subaccount with provided login. This request have to be authenticated using **API Access Token**. In case of an error, the `ErrorResponse` object will be returned with proper HTTP header status code (our error response complies with [RFC 9457](https://www.rfc-editor.org/rfc/rfc7807)).
        Returns:
        The call builder
      • getSubaccount

        public GetSubaccountDetailsResponse getSubaccount​(java.lang.String userLogin)
                                                   throws java.lang.Exception
        Get subaccount details Check account balance and other details such subcredit balance of a subaccount. Subaccounts are additional users who can access your account services and the details. You can restrict access level and setup privileges to subaccounts using [user panel](https://panel.gsmservice.pl). This endpoint accepts a path `user_login` parameter with empty request body. You should pass the full subaccount login to access its data. As a successful result an `AccountResponse` object will be returned with properties describing details of subaccount with provided login. This request have to be authenticated using **API Access Token**. In case of an error, the `ErrorResponse` object will be returned with proper HTTP header status code (our error response complies with [RFC 9457](https://www.rfc-editor.org/rfc/rfc7807)).
        Parameters:
        userLogin - Login of the subaccount (user) to get the data for
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails
      • getSubaccount

        public GetSubaccountDetailsResponse getSubaccount​(java.lang.String userLogin,
                                                          java.util.Optional<Options> options)
                                                   throws java.lang.Exception
        Get subaccount details Check account balance and other details such subcredit balance of a subaccount. Subaccounts are additional users who can access your account services and the details. You can restrict access level and setup privileges to subaccounts using [user panel](https://panel.gsmservice.pl). This endpoint accepts a path `user_login` parameter with empty request body. You should pass the full subaccount login to access its data. As a successful result an `AccountResponse` object will be returned with properties describing details of subaccount with provided login. This request have to be authenticated using **API Access Token**. In case of an error, the `ErrorResponse` object will be returned with proper HTTP header status code (our error response complies with [RFC 9457](https://www.rfc-editor.org/rfc/rfc7807)).
        Specified by:
        getSubaccount in interface SDKMethodInterfaces.MethodCallGetSubaccountDetails
        Parameters:
        userLogin - Login of the subaccount (user) to get the data for
        options - additional options
        Returns:
        The response from the API call
        Throws:
        java.lang.Exception - if the API call fails