Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default SMS to website..

    I know you can send messages to sms on twitter and facebook. Is there a way to take the messages from twitter and through a script post them in your sites news category. If anyone could point me in the direction of the twitter code library's or anything like that..

    Yes I'm aware theres the html/flash widget from twitter themselves.. But I'm looking for a more detailed info feed.
    Last edited by Colin-Roberts; 25-03-2009 at 09:07 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  2. #2
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Couldn't you just grab it from the .xml feed? http://twitter.com/statuses/user_timeline/15445241.xml

  3. #3
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    It would be limited to 140 characters though..

    But what you could do, is create an account "colinnews", and follow it with your account (the one setup with the device updates..) and have "colinnews" follow your account.

    Then on your mobile, send "d colinnews messageeeeeeeeeee". That will send a direct message to colinnews (and you're the only one that can send it to it, cause you're the only one it's following).

    Then create a simple PHP script to routinely scan the Twitter account's direct messages, and when it finds a new one.. do what you want to with it's data, then delete the direct message.

    Just have a cron job that checks every little bit.

  4. #4
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    Or you could look at acutally use an SMS gateway to recieve texts, I know this isn't exactly on the right topic but it may help others search for SMS to web.

    I use a service in the UK called kapow (http://www.kapow.co.uk/prices.html) but you can see its not cheap. To recieve text's you need to pay £25 for a new number, then £10 a month to cover costs.

    What I would do if you want to use twitter, is, use your own account and post things with a #tag in. So you would text your account "New thing here up to 140 chars #colinnews", then use the API to get #colinnews based tweets. You would then make sure the php script only accepted news from a whitelist of people and if they are whitelisted you would go about adding it to the database (as long as its not a duplicate).
    Last edited by Source; 27-03-2009 at 11:29 AM.

  5. #5
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    The whole idea sounds stupid and pointless. No offence but I doubt it be used. 140 Chars isnt a lot.

    eg:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at velit sit amet risus hendrerit pharetra. Nullam purus lectus, fringilla
    Hi, names James. I am a web developer.

  6. #6
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    140 characters is enough to update the end viewer about the site, when you can't get to a computer

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  7. #7
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Expanding above:

    on your first text enter how many parts there is (e.g 4 if you use 544 char) then the number of the part eg 1 then your message and do that for every text so

    4 1 hello
    4 2 hi

    Then make a script that parses this together then once it's got all the max parts it moves onto the next thing

    You could expand it by in the first part have your title then a ; eg

    4 1 hello; news here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •