How to get Phone Number on smsgateway.me PHP











up vote
-1
down vote

favorite












I have try with



<?php
require 'autoload.php';

use SMSGatewayMeClientApiClient;
use SMSGatewayMeClientConfiguration;
use SMSGatewayMeClientApiMessageApi;

// Configure client
$config = Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'myApifromOfficial');
$apiClient = new ApiClient($config);
$messageClient = new MessageApi($apiClient);
$message = $messageClient->getMessage(myMessageID);
print_r($message);


but this only print



{ 
"id": 73469582,
"device_id": 104837,
"message": "Tester",
"status": "received",
"log": [
{
"status": "received",
"occurred_at": "2018-11-16T14:20:38+00:00"
}
],
"created_at": "2018-11-16T14:20:38+00:00",
"updated_at": "2018-11-16T14:20:38+00:00"
}


but when i try to link at
https://smsgateway.me/api/v4/message/myMessageID
its show Access denied, how to use Endpoint and get the Phone Number on my Array Php..



sorry if my english language is bad..










share|improve this question




















  • 2




    Have you checked the API documentation? Can you show us your actual code? Have you added a valid authorization token?
    – Magnus Eriksson
    Nov 19 at 15:46










  • yes, i have add the valid token
    – Ghin
    Nov 19 at 15:57










  • Looking at their code, it seems like the response SMSGatewayMeClientModelMessage doesn't contain any phone_number property. You need to take it up with the developers. Contact their support or add an issue to their github repo. There isn't much we can do about their code.
    – Magnus Eriksson
    Nov 19 at 16:08












  • the other option, i have to Request Endpoint, but i dont know how to Request endpoint on php..
    – Ghin
    Nov 19 at 16:14










  • You can either use cURL or one of the more high-level http-libraries that exists.
    – Magnus Eriksson
    Nov 19 at 16:15















up vote
-1
down vote

favorite












I have try with



<?php
require 'autoload.php';

use SMSGatewayMeClientApiClient;
use SMSGatewayMeClientConfiguration;
use SMSGatewayMeClientApiMessageApi;

// Configure client
$config = Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'myApifromOfficial');
$apiClient = new ApiClient($config);
$messageClient = new MessageApi($apiClient);
$message = $messageClient->getMessage(myMessageID);
print_r($message);


but this only print



{ 
"id": 73469582,
"device_id": 104837,
"message": "Tester",
"status": "received",
"log": [
{
"status": "received",
"occurred_at": "2018-11-16T14:20:38+00:00"
}
],
"created_at": "2018-11-16T14:20:38+00:00",
"updated_at": "2018-11-16T14:20:38+00:00"
}


but when i try to link at
https://smsgateway.me/api/v4/message/myMessageID
its show Access denied, how to use Endpoint and get the Phone Number on my Array Php..



sorry if my english language is bad..










share|improve this question




















  • 2




    Have you checked the API documentation? Can you show us your actual code? Have you added a valid authorization token?
    – Magnus Eriksson
    Nov 19 at 15:46










  • yes, i have add the valid token
    – Ghin
    Nov 19 at 15:57










  • Looking at their code, it seems like the response SMSGatewayMeClientModelMessage doesn't contain any phone_number property. You need to take it up with the developers. Contact their support or add an issue to their github repo. There isn't much we can do about their code.
    – Magnus Eriksson
    Nov 19 at 16:08












  • the other option, i have to Request Endpoint, but i dont know how to Request endpoint on php..
    – Ghin
    Nov 19 at 16:14










  • You can either use cURL or one of the more high-level http-libraries that exists.
    – Magnus Eriksson
    Nov 19 at 16:15













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I have try with



<?php
require 'autoload.php';

use SMSGatewayMeClientApiClient;
use SMSGatewayMeClientConfiguration;
use SMSGatewayMeClientApiMessageApi;

// Configure client
$config = Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'myApifromOfficial');
$apiClient = new ApiClient($config);
$messageClient = new MessageApi($apiClient);
$message = $messageClient->getMessage(myMessageID);
print_r($message);


but this only print



{ 
"id": 73469582,
"device_id": 104837,
"message": "Tester",
"status": "received",
"log": [
{
"status": "received",
"occurred_at": "2018-11-16T14:20:38+00:00"
}
],
"created_at": "2018-11-16T14:20:38+00:00",
"updated_at": "2018-11-16T14:20:38+00:00"
}


but when i try to link at
https://smsgateway.me/api/v4/message/myMessageID
its show Access denied, how to use Endpoint and get the Phone Number on my Array Php..



sorry if my english language is bad..










share|improve this question















I have try with



<?php
require 'autoload.php';

use SMSGatewayMeClientApiClient;
use SMSGatewayMeClientConfiguration;
use SMSGatewayMeClientApiMessageApi;

// Configure client
$config = Configuration::getDefaultConfiguration();
$config->setApiKey('Authorization', 'myApifromOfficial');
$apiClient = new ApiClient($config);
$messageClient = new MessageApi($apiClient);
$message = $messageClient->getMessage(myMessageID);
print_r($message);


but this only print



{ 
"id": 73469582,
"device_id": 104837,
"message": "Tester",
"status": "received",
"log": [
{
"status": "received",
"occurred_at": "2018-11-16T14:20:38+00:00"
}
],
"created_at": "2018-11-16T14:20:38+00:00",
"updated_at": "2018-11-16T14:20:38+00:00"
}


but when i try to link at
https://smsgateway.me/api/v4/message/myMessageID
its show Access denied, how to use Endpoint and get the Phone Number on my Array Php..



sorry if my english language is bad..







php arrays sms endpoint






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 16:01









Magnus Eriksson

6,98041227




6,98041227










asked Nov 19 at 15:40









Ghin

11




11








  • 2




    Have you checked the API documentation? Can you show us your actual code? Have you added a valid authorization token?
    – Magnus Eriksson
    Nov 19 at 15:46










  • yes, i have add the valid token
    – Ghin
    Nov 19 at 15:57










  • Looking at their code, it seems like the response SMSGatewayMeClientModelMessage doesn't contain any phone_number property. You need to take it up with the developers. Contact their support or add an issue to their github repo. There isn't much we can do about their code.
    – Magnus Eriksson
    Nov 19 at 16:08












  • the other option, i have to Request Endpoint, but i dont know how to Request endpoint on php..
    – Ghin
    Nov 19 at 16:14










  • You can either use cURL or one of the more high-level http-libraries that exists.
    – Magnus Eriksson
    Nov 19 at 16:15














  • 2




    Have you checked the API documentation? Can you show us your actual code? Have you added a valid authorization token?
    – Magnus Eriksson
    Nov 19 at 15:46










  • yes, i have add the valid token
    – Ghin
    Nov 19 at 15:57










  • Looking at their code, it seems like the response SMSGatewayMeClientModelMessage doesn't contain any phone_number property. You need to take it up with the developers. Contact their support or add an issue to their github repo. There isn't much we can do about their code.
    – Magnus Eriksson
    Nov 19 at 16:08












  • the other option, i have to Request Endpoint, but i dont know how to Request endpoint on php..
    – Ghin
    Nov 19 at 16:14










  • You can either use cURL or one of the more high-level http-libraries that exists.
    – Magnus Eriksson
    Nov 19 at 16:15








2




2




Have you checked the API documentation? Can you show us your actual code? Have you added a valid authorization token?
– Magnus Eriksson
Nov 19 at 15:46




Have you checked the API documentation? Can you show us your actual code? Have you added a valid authorization token?
– Magnus Eriksson
Nov 19 at 15:46












yes, i have add the valid token
– Ghin
Nov 19 at 15:57




yes, i have add the valid token
– Ghin
Nov 19 at 15:57












Looking at their code, it seems like the response SMSGatewayMeClientModelMessage doesn't contain any phone_number property. You need to take it up with the developers. Contact their support or add an issue to their github repo. There isn't much we can do about their code.
– Magnus Eriksson
Nov 19 at 16:08






Looking at their code, it seems like the response SMSGatewayMeClientModelMessage doesn't contain any phone_number property. You need to take it up with the developers. Contact their support or add an issue to their github repo. There isn't much we can do about their code.
– Magnus Eriksson
Nov 19 at 16:08














the other option, i have to Request Endpoint, but i dont know how to Request endpoint on php..
– Ghin
Nov 19 at 16:14




the other option, i have to Request Endpoint, but i dont know how to Request endpoint on php..
– Ghin
Nov 19 at 16:14












You can either use cURL or one of the more high-level http-libraries that exists.
– Magnus Eriksson
Nov 19 at 16:15




You can either use cURL or one of the more high-level http-libraries that exists.
– Magnus Eriksson
Nov 19 at 16:15

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378070%2fhow-to-get-phone-number-on-smsgateway-me-php%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378070%2fhow-to-get-phone-number-on-smsgateway-me-php%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]