0

Send PM Using PHP

Hi

I want a php script that I login with an ID and send pm to another ID.

i searched a lot and found several scripts but non of them works.

THANKS.

by
  • bn
  • Oct 13, 2011
4 Replies
  • i used this

    Example PHP Source Code

    You can download example source code written in PHP from the following site:


              http://github.com/yahoo/messenger-sdk-php
            

    The example consists of a lower-level PHP library and demo that will access the Yahoo! Messenger SDK APIs. The file Client.php is a demonstration program with the following features.

    but i get this ERROR:


    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in C:\Program Files\VertrigoServ\www\PM\jymengine.class.php on line 69



    QUOTE(bn @ 13 Oct 2011 8:29 AM)
    Hi

    I want a php script that I login with an ID and send pm to another ID.

    i searched a lot and found several scripts but non of them works.

    THANKS.
    0
  • i changed (::)s TO (->) and it solved.

    now its the error:

    Fetching request token failed

    QUOTE(bn @ 13 Oct 2011 8:42 AM)
    i used this

    Example PHP Source Code

    You can download example source code written in PHP from the following site:


              http://github.com/yahoo/messenger-sdk-php
            

    The example consists of a lower-level PHP library and demo that will access the Yahoo! Messenger SDK APIs. The file Client.php is a demonstration program with the following features.

    but i get this ERROR:


    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in C:\Program Files\VertrigoServ\www\PM\jymengine.class.php on line 69



    QUOTE(bn @ 13 Oct 2011 8:29 AM)
    Hi

    I want a php script that I login with an ID and send pm to another ID.

    i searched a lot and found several scripts but non of them works.

    THANKS.
    0
  • what is CONSUMER_KEY and SECRET_KEY?
    0
  • This is a Very Late Reply, But I know that I didnt know it myself either! So this is going to at least help others as well.

    @BN, You need an API to get a Consumer Key and a Secret Key. I will add the link below and explain short how to create a Project and then you will get a Consumer Key and a Secret Key when you are done.

    For Yahoo Messenger visit this Link >> https://developer.yahoo.com/messenger/ .. And create a Project befor you can get a Consumer Key >> https://developer.yahoo.com/messenger/.,,

    Here is a Short Description how to:

    1) Login to your Yahoo account on Yahoo.com Website. 2) Visit this Link: https://developer.apps.yahoo.com/projects 3) Click on Create Project button and fillout your needs and what you want to use the API. 4) When you are done creating the Project you should

    0

Recent Posts

in Messenger IM SDK