Accessibility

Table of Contents

Build a YChat! Instant Messenger application using Flash Lite for mobile devices

URLs and parameters to access the chat functionality

The 'YChat! IM Web Proxy' should to be deployed with Tomcat. Once deployed, the YChat! IM Web Proxy can be accessed using http://localhost:8080/YahooIMWebProxy/ on a local machine. The YChat! Client can then call the following parameters and URLs of the 'YChat! IM Web Proxy' to perform various functions of Instant Messaging.

Here's the full list of URLs with the corresponding parameters:

  1. Access the proxy status or base URL:

    http://localhost:8080/YahooIMWebProxy/
  2. Access the login screen:

    http://localhost:8080/YahooIMWebProxy/?cmd=Login&userID=[test_yim]&userPWD=[userPassword]
  3. Retrieve the buddy list:

    http://localhost:8080/YahooIMWebProxy/?cmd=getbuddylist

    Note: After logging in, the URL above is called to retrieve the buddy list in XML format.

  4. Access the logout screen:

    http://localhost:8080/YahooIMWebProxy/?cmd=logout
  5. Send a message:

    http://localhost:8080/YahooIMWebProxy/?cmd=sendMessage&sendMessageTo=[yahooBuddyUserId]&message=[message]

    Note: After the user has logged in, the YChat! Instant Messenger application uses the URL listed above to send messages.

  6. Receive a message:

    http://localhost:8080/YahooIMWebProxy/?cmd=receiveMessage&receiveMessageFor=[yahooBuddyUserId]

    Note: After the user has logged in, the YChat! Instant Messenger application uses the URL listed above to receive messages.

  7. Set a custom status message:

    http://localhost:8080/YahooIMWebProxy/?cmd=customStatusMessage&statusMessage=[CustomStatusMessage]
  8. Delete a buddy from the buddy list:

    http://localhost:8080/YahooIMWebProxy/?cmd=removeFriend&friendName=[yahooBuddyUserId]&groupName=[buddyGroupName]

    Note: After the user has logged in, the YChat! Instant Messenger application uses the URL above to remove buddies from the buddy list.

  9. Add a new buddy to the buddy list:

    http://localhost:8080/YahooIMWebProxy/?cmd=addFriend&friendName=[newBuddyUserId]&groupName=[buddyGroupName]

    Note: After the user has logged in, the YChat! Instant Messenger application uses the URL listed above to add new chat buddies to a group.

  10. Upload a file to the server using the KuneriLite Plug-in:

    http://localhost:8080/UploadServlet/
  11. Transfer File from proxy to Yahoo IM server:

    http://localhost:8080/YahooIMWebProxy/?cmd=sendFile&sendFileTo=[yahooBuddyUserId]&fileName=[fileNameThatWasXferedUsingUploadServlet
    ]