Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){
- var config = {
- version: '',
- apiKey: '',
- apiKeyCC: ''
- };
- Skype.initialize({ apiKey: config.apiKey },
- function (api) {
- window.skypeWebAppCtor = api.application;
- window.skypeWebApp = new api.application();
- Utils.openModalDialog({
- template: "/skype_sessions/new"
- });
- },
- function (err) {
- console.log(err);
- }
- );
- $(document).on("submit", "#skype_for_business", function(event){
- event.preventDefault();
- var username = $("#skype_username").val()
- var password = $("#skype_password").val()
- var version = '';
- window.skypeWebApp.signInManager.signIn({
- version: version,
- username: username,
- password: password
- }).then(function () {
- console.log("logged in...");
- }, function (error) {
- console.log("failed to log in...");
- })
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement