Advertisement
Guest User

Untitled

a guest
May 12th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <script src="https://swx.cdn.skype.com/shared/v/1.2.15/SkypeBootstrap.min.js"></script>
  2.  
  3. <script>
  4. var config = {
  5. apiKey: '595a1aeb-e6dc-4e5b-be96-bb38adc83da1', // SDK
  6. apiKeyCC: '08c97289-7d57-404f-bd97-a6047403e370' // SDK+UI
  7. };
  8.  
  9. Skype.initialize({ apiKey: config.apiKey },
  10. function (api)
  11. {
  12. Application = api.application; // this is the Application constructor
  13. app = new Application;
  14. app.signInManager.signIn ({
  15. username: 'voxiweb.test1',
  16. password: 'voxiwebtest1'
  17. }).then(() => {
  18. console.log("signed in as", app.personsAndGroupsManager.mePerson.displayName());
  19. }, err => {
  20. console.log("cannot sign in :", err);
  21. });
  22. },
  23. function (err)
  24. {
  25. console.log("cannot load the sdk package", err);
  26. }
  27. );
  28.  
  29. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement