Tropo free sms client api class

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CreativityKills
    replied
    Originally posted by pkmob View Post
    i add valid token here,

    but now its says,

    "tropo no response, check ur token"
    your problem has to be your token. The code cant be wrong. Let me explain why, if you make a direct GET call through your browser to the api url (http://api.tropo.com/1.0/session?action=create&token=your-token) you get an xml response with the flag true, and your token. If the token is invalid on the other hand, you get a blank response. My script checks the resonse curl returns for your token
    PHP Code:
    return stristr($tropo->response'your-token'); 
    since on every valid call, your token will be included in the return response string it should only return false if the response does not contain your token (invalid token most likely)

    Added after 8 minutes:

    Originally posted by atef View Post
    CreativityKills mate our problem is how to add the number thats all, i tested ur demo and workin with me but mine not

    plz add math captcha on it, example 3 + 2 = ??
    i was gonna add captcha to the next release but i decided against it, for flexibility, the developer should be allowed to do whatever he wants as regards validation. The form token should be enough.

    And adding the number is easy, if you are on mobile, you will need opera mini 5.1 and above
    Last edited by CreativityKills; 19.05.11, 09:28.

    Leave a comment:


  • atef
    replied
    CreativityKills mate our problem is how to add the number thats all, i tested ur demo and workin with me but mine not

    plz add math captcha on it, example 3 + 2 = ??

    Leave a comment:


  • pkmob
    replied
    i add valid token here,

    but now its says,

    "tropo no response, check ur token"

    Leave a comment:


  • CreativityKills
    replied
    Originally posted by masud_rana View Post
    whats the problem here????????????/
    your server does not support curl then. In the next release i will add support for fsock and maybe json, that would solve it for those without curl.

    Added after 3 minutes:

    Originally posted by pkmob View Post
    I not understand,
    where i add token,

    pls. post,

    lib/tropo_config.php

    with an example.

    pls. in that page post an notvalid token for example.
    there is already a not valid token in the tropo.config.php file. Look for this line:
    PHP Code:
    define('TROPO_API_TOKEN''here sir, replace me with valid token'); 
    Originally posted by m4ster_v4 View Post
    Server problem sometime. 'free thing' right. So be patient. This is nice app..
    thank you for the props
    Last edited by CreativityKills; 19.05.11, 06:08.

    Leave a comment:


  • masud_rana
    replied
    Fatal error: Call to undefined function curl_init() in /srv/disk2/575585/www/eruptionbd.tk/tropo/lib/tropo.php on line 127
    whats the problem here????????????/

    Leave a comment:


  • m4ster_v4
    replied
    Server problem sometime. 'free thing' right. So be patient. This is nice app..

    Leave a comment:


  • nightkizzer05
    replied
    demo works 4 me...
    ..and theres a signiture of sir creativity inside the message...

    Leave a comment:


  • Jervy
    replied
    Same as me, the demo says message sent i didn't receive any messages.

    Added after 19 minutes:

    Oops! I received the message now, it's working just delayed.
    Last edited by Jervy; 19.05.11, 05:30.

    Leave a comment:


  • mayurss786
    replied
    why msgs are not recieving

    Leave a comment:


  • pkmob
    replied
    I not understand,
    where i add token,

    pls. post,

    lib/tropo_config.php

    with an example.

    pls. in that page post an notvalid token for example.

    Leave a comment:


  • CreativityKills
    replied
    Sorry but it does for me... Thats all that matters to me because it means the code works perfectly alright.

    Leave a comment:


  • khan
    replied
    Originally posted by CreativityKills View Post
    Download the latest version 1.0.1.

    Here is a working example of the latest version and here is a list of all the releases to date.
    Workin Example not workin for me

    Leave a comment:


  • CreativityKills
    replied
    Version 1.0.1 is now available. The change log is in the package but some of the fixes and new features include:
    - Error on invalid token. The client now checks the response to see it it was a valid request.
    - Added abstraction to tropo core class to allow core extension without touching the core class.
    - Added simple form token to reduce remote spammers.
    - Added minimum and maximum sms length in config for easier customization.

    To view all the releases, view this topics first post. Theres a link posted there.

    Leave a comment:


  • CreativityKills
    replied
    Originally posted by Jervy View Post
    Im using tropo hosted file as i follow the tutorial in the previous topic. Below is my message token.

    0199119b28d235419612e6785ee8de7dccf567b13dc7b4264c

    If you have tested it working can you show us your demo or atleast your working token?

    Added after 2 minutes:

    Actualy im using a mobile ph0ne in creating tropo accnt. and my number in tropo was blank but i got that message token.
    first of all, NEVER share your token, its like a password. Sencond, without adding a number it will never work even with a valid token.

    Added after 3 minutes:

    Originally posted by GumSlone View Post
    do they collect phone numbers for spamming via sms,
    or how do the yfinance their service?
    No they dont spam...atleast they say they dont, but i really dont know how they make their doe, probably through their paid service. Meh, free sms is just a tip of the very big iceberg tropo has to offer anyway.
    Last edited by CreativityKills; 18.05.11, 20:44.

    Leave a comment:


  • GumSlone
    replied
    Originally posted by CreativityKills View Post
    I created a new thread so it would be easier to find the script without browsing pages of the already clogged free sms topic. Anyways the link is HERE. (if any staff can attach it fine)

    I didnt upload because it was saying some junk about exceeding my quota? Whatever reason we have a quota for.
    do they collect phone numbers for spamming via sms,
    or how do the yfinance their service?

    Leave a comment:

Working...
X