Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Please add the below code in wp-content/plugins/wp-sms/includes/gateways/class-wpsms-gateway-unifonic.php line 139

    if (is_admin()) {
          echo '<pre>' . print_r($response, 1) . '</pre>';
    }

    And see the result on admin, you can debug more to find the issue.

    After that, don’t forget to remove the code.

    Thread Starter mehul029

    (@mehul029)

    Here i am getting the error. I am not sure the admin settings configured is true ot

    {“success”:”false”,”message”:”Invalid AppSid”,”errorCode”:”ER-01″,”data”:[]}

    I am not sure that admin settting configured is right or not.

    Result request ‘{“success”:”false”,”message”:”Invalid AppSid”,”errorCode”:”ER-01″,”data”:[]}’

    Here what i consider the credentials is

    API username: considering the login username of unifonic account

    API password: considering the login username of unifonic account

    Sender number: Api sender name

    API key: https://api.unifonic.com/rest/Messages/Send

    Server: awselb/2.0
    Date: Sat, 13 Feb 2021 11:10:42 GMT
    Content-Type: application/json
    Content-Length: 76
    Connection: close
    X-Powered-By: PHP/7.4.10

    {“success”:”false”,”message”:”Invalid AppSid”,”errorCode”:”ER-01″,”data”:[]}
    [headers] => Requests_Response_Headers Object
    (
    [data:protected] => Array
    (
    [server] => Array
    (
    [0] => awselb/2.0
    )

    [date] => Array
    (
    [0] => Sat, 13 Feb 2021 11:10:42 GMT
    )

    [content-type] => Array
    (
    [0] => application/json
    )

    [content-length] => Array
    (
    [0] => 76
    )

    [x-powered-by] => Array
    (
    [0] => PHP/7.4.10
    )

    )

    )

    [status_code] => 200
    [protocol_version] => 1.1
    [success] => 1
    [redirects] => 0
    [url] => https://api.unifonic.com/rest/Account/GetBalance
    [history] => Array
    (
    )

    [cookies] => Requests_Cookie_Jar Object
    (
    [cookies:protected] => Array
    (
    )

    )

    )

    [filename:protected] =>
    [data] =>
    [headers] =>
    [status] =>
    )

    )

    • This reply was modified 4 years, 1 month ago by mehul029.
    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Please enter your AppSid token in the API/Key field.

    Thread Starter mehul029

    (@mehul029)

    Still i am getting same error.

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Are you sure the token is correct? can you double-check it? or maybe you can ask it from your service provider.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘unifonic gateway not working’ is closed to new replies.