From the C++ API example located on this page:
https://developer.skype.com/Docs/ApiDoc/Usi..._API_on_Windows
From this link:
https://developer.skype.com/Download/Sample...example_win.zip
Here is a one line change that will allow it to compile correctly:
http://testing.onlytherightanswers.com/msg...gapitestfix.zip
Instructions to create a New project using the source code:
1. Create a folder called msgapitest
2. Unzip the file above to that folder.
3. Launch C++ Studio Express
4. Click on File, New, Project from existing code
5. Visual C++ should be the selected type of project, click next
6. Click the browse button and select the msgapitest folder
7. In the project name field enter msgapitest, click next
8. In the project type field select "Console Application Project"
9. Click Finish
10. Click Build, select build project.
If all goes well you should see Build Succeeded. You can close C++ Studio Express now.
Open the msgapitest folder there should be many more files there as well as a new folder called Debug. Open the Debug folder and there should now be a msgapitest.exe file there.
Make sure Skype is started and click on the msgapitest.exe file and a console window will open. The default has debug messages on so you can see "Raw message numbers" this can be turned off by entering #dbgoff in the console window, and turned back on by entering #dbgon in the console window.
You can do normal things on Skype and see what is going back and forth, and NOW you can modify this source code with your changes and do some testing using C++ Express.
You can also enter commands. Here are just six of many possible command Examples:
CALL echo123 <Enter Key>
Will call the test call and you can see messages caused by calling.
MESSAGE username text <Enter Key>
Change username to a real skype username and it will start a text chat if that user is available.
SET USERSTATUS AWAY
Will change current user status to away.
SET USERSTATUS ONLINE
Will change current user status to online.
MINIMIZE
Minimizes Skype to the toolbar.
FOCUS
Raises Skype Window from the toolbar.
Also don't forget you could use command Indentifiers as well to match request/response simply by adding a tag of # and a Alpha or numeric with almost all commands.
More here on that:
https://developer.skype.com/Docs/ApiDoc/Com...and_identifiers
You basically can use and test almost any of the API commands with this utility and look at the message flows from/to the API. The debug version of this utility is 44k Small, the Release version is 9k small.
So as you can see there is no reason NOT to try and build any interface you are doing on the client side in C++, it is easy to do, and with Microsoft Visual Studio C++ 2005 Express it can be done for free as well. Here is a link to get C++ Express for free if you need it:
http://msdn.microsoft.com/vstudio/express/visualc/
Just think of the QUICK testing advanage of using this tool, it is very easy to modify, even if you will use another langauge, this will open the RAW API for you while you are testing.
Here is a list of API commands that can be used:
https://developer.skype.com/Docs/ApiDoc/FrontPage
It may be hard to enter commands in the console window with the debug on option so if you are going to be entering commands you may wish to do the #dbgoff and then turn it back on afterwards.
Look at the msgapitest C++ source code to see other options and to make changes.
Here is sample output from the utility using the commands listed above, note while calls are active duration messages are sent every second by the API showing the total number of seconds passed since the call started:
CODE
!!! Pending authorization
!!! Try connect now (API available); issue #connect
!!! Connected; to terminate issue #disconnect
Message from Skype(0): CONNSTATUS ONLINE
Message from Skype(0): CURRENTUSERHANDLE theuberoverlord
Message from Skype(0): USERSTATUS ONLINE
CALL echo123
Message from Skype(0): CALL 519 STATUS ROUTING
Message from Skype(0): CALL 519 STATUS ROUTING
Message from Skype(0): CALL 519 STATUS ROUTING
Message from Skype(0): CALL 519 STATUS RINGING
Message from Skype(0): CALL 519 STATUS INPROGRESS
Message from Skype(0): CALL 519 DURATION 1
Message from Skype(0): CALL 519 DURATION 2
Message from Skype(0): CALL 519 DURATION 3
Message from Skype(0): CALL 519 DURATION 4
Message from Skype(0): CALL 519 DURATION 5
Message from Skype(0): CALL 519 STATUS FINISHED
MESSAGE echo123 Hi are you there?
Message from Skype(0): MESSAGE 526 STATUS SENDING
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 NAME #the
uberoverlord/$echo123;32827a251fc98284
Message from Skype(0): MESSAGE 525 STATUS SENDING
Message from Skype(0): MESSAGE 526 STATUS SENDING
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 STATUS DIALOG
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 MEMBERS echo123 theuberoverlord
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 ACTIVEMEMBERS theuberoverlord
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 STATUS DIALOG
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 TIMESTAMP
1148620140
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 MEMBERS e
cho123 theuberoverlord
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 FRIENDLYN
AME Echo / Sound Test Service | Hi are you there?
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 POSTERS t
heuberoverlord
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 FRIENDLYN
AME Echo / Sound Test Service | Hi are you there?
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 STATUS LE
GACY_DIALOG
Message from Skype(0): MESSAGE 525 STATUS SENT
Message from Skype(0): CHAT #theuberoverlord/$echo123;32827a251fc98284 ACTIVEMEM
BERS echo123 theuberoverlord
Message from Skype(0): MESSAGE 526 STATUS SENT
SET USERSTATUS AWAY
Message from Skype(0): USERSTATUS AWAY
Message from Skype(0): USER theuberoverlord ONLINESTATUS AWAY
Message from Skype(0): USERSTATUS AWAY
SET USERSTATUS ONLINE
Message from Skype(0): USERSTATUS ONLINE
Message from Skype(0): USER theuberoverlord ONLINESTATUS ONLINE
Message from Skype(0): USERSTATUS ONLINE
MINIMIZE
Message from Skype(0): MINIMIZE
FOCUS
Message from Skype(0): FOCUS
Message from Skype(0): GROUP 205 NROFUSERS 1
Message from Skype(0): GROUP 205 NROFUSERS_ONLINE 1
Message from Skype(0): GROUP 209 NROFUSERS_ONLINE 1
Message from Skype(0): GROUP 208 NROFUSERS_ONLINE 1
Message from Skype(0): GROUP 207 NROFUSERS_ONLINE 1
Message from Skype(0): GROUP 203 NROFUSERS_ONLINE 1
Message from Skype(0): GROUP 201 NROFUSERS_ONLINE 0
Message from Skype(0): GROUP 199 NROFUSERS_ONLINE 1
Message from Skype(0): GROUP 205 USERS echo123
#a FOCUS
Message from Skype(0): #a FOCUS
The Entire Visual C++ express project files can be downloaded here if needed:
http://testing.OnlyTheRightAnswers.com/msgapitest.zip
Was this helpful?