http post refusing to work...

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
so http post in one of my script and no mater what i have been trying the damn thin refuses to work
use Twilio\Rest\Client;
$sid = '';
$token = '';
$client = new Client($sid, $token);
$client->messages->create(
'{-Variable.smsTO-}',
array(
'from' => '{-Variable.smsFROM-}',
'body' => "POST TEST!"
)
);

(i had the raw data in where the variable now sit but even before that it would still come back telling me Error variable with specified name does not exist)
so i created the two purple Phone # (in the editor they showed up purple) variables
im just trying to post the data to a script so i can send my text messages out... any help here whats causing this hang up.... ??? it works fine if i had the code in a php page and just load the page but i need the script to make some changes to the destination and body
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
fixed:
just set a variable at the bottom of detail in the http options
just had to set it TO ANY variable...
don't know why i don't need a variable response really
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
well while it says it post successfully its not actual doing the same thing it does
if i execute it on the site with a php post....
 

Tobbe

Client
Регистрация
01.08.2013
Сообщения
428
Благодарностей
148
Баллы
43
Are you trying to use PHP in zennposter?
Here's a working example with the POST feature.
 
  • Спасибо
Реакции: PHaRTnONu

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
its a twilio http post, if i use the php fiels and have it poiting on a server with the php file on a server it works just fine but i need to post from zenno and its driving me crazy....


if your availble message me at skype:
b4nk5 b4nk5
 

PHaRTnONu

Client
Регистрация
01.10.2016
Сообщения
340
Благодарностей
48
Баллы
28
got it working so i can send twilio text messages, thanks for smoe of the help, it actualy saved me some time after i did some research on php handliing $_Request

pain in the but but all working perfectly from zenno poster now to send....
now i just need a way to recive from them in zeno too :(
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)