1:HL["/_next/static/media/560d0dc937e89811-s.p.woff2",{"as":"font","type":"font/woff2"}] 2:HL["/_next/static/css/2e92341f2f2a549e.css",{"as":"style"}] 0:["990hTVHkZlVsRanvA0-KC",[[["",{"children":["blog",{"children":[["slug","skype-web-api-for-php","c"],{"children":["__PAGE__?{\"slug\":[\"skype-web-api-for-php\"]}",{}]}]}]},"$undefined","$undefined",true],"$L3",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2e92341f2f2a549e.css","precedence":"next"}]],"$L4"]]]] 5:HL["/_next/static/css/aa77ab9bba161dd5.css",{"as":"style"}] 6:I{"id":8464,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","504:static/chunks/504-3bf38d4755258f20.js","185:static/chunks/app/layout-a3c0484fb4b40d70.js"],"name":"ThemeProviders","async":false} 7:I{"id":3015,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","504:static/chunks/504-3bf38d4755258f20.js","185:static/chunks/app/layout-a3c0484fb4b40d70.js"],"name":"","async":false} 8:I{"id":3657,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","504:static/chunks/504-3bf38d4755258f20.js","185:static/chunks/app/layout-a3c0484fb4b40d70.js"],"name":"KBarSearchProvider","async":false} 9:I{"id":6685,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","797:static/chunks/app/blog/[...slug]/page-3271df622a55882d.js"],"name":"","async":false} a:I{"id":7005,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","504:static/chunks/504-3bf38d4755258f20.js","185:static/chunks/app/layout-a3c0484fb4b40d70.js"],"name":"KBarButton","async":false} b:I{"id":6914,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","504:static/chunks/504-3bf38d4755258f20.js","185:static/chunks/app/layout-a3c0484fb4b40d70.js"],"name":"","async":false} c:I{"id":8766,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","504:static/chunks/504-3bf38d4755258f20.js","185:static/chunks/app/layout-a3c0484fb4b40d70.js"],"name":"","async":false} d:I{"id":7767,"chunks":["272:static/chunks/webpack-ab432321c71a0084.js","971:static/chunks/fd9d1056-3a33dcaeb8d53e3c.js","596:static/chunks/596-58227000ca6846a8.js"],"name":"default","async":false} e:I{"id":7920,"chunks":["272:static/chunks/webpack-ab432321c71a0084.js","971:static/chunks/fd9d1056-3a33dcaeb8d53e3c.js","596:static/chunks/596-58227000ca6846a8.js"],"name":"default","async":false} 4:[["$","meta","0",{"charSet":"utf-8"}],["$","title","1",{"children":"Skype Web API for PHP: A Comprehensive Guide | akbv - Atanas Korabov"}],["$","meta","2",{"name":"description","content":"Learn how to integrate the Skype Web API into your PHP projects with the php-skype library. This comprehensive guide covers installation, usage, and provides examples for various functionalities."}],["$","meta","3",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","4",{"name":"robots","content":"index, follow"}],["$","meta","5",{"name":"googlebot","content":"index, follow, max-video-preview:-1, max-image-preview:large, max-snippet:-1"}],["$","link","6",{"rel":"canonical","href":"https://akbv.dev/blog/skype-web-api-for-php"}],["$","link","7",{"rel":"alternate","type":"application/rss+xml","href":"https://akbv.dev/feed.xml"}],["$","meta","8",{"property":"og:title","content":"Skype Web API for PHP: A Comprehensive Guide"}],["$","meta","9",{"property":"og:description","content":"Learn how to integrate the Skype Web API into your PHP projects with the php-skype library. This comprehensive guide covers installation, usage, and provides examples for various functionalities."}],["$","meta","10",{"property":"og:url","content":"https://akbv.dev/blog/skype-web-api-for-php"}],["$","meta","11",{"property":"og:site_name","content":"akbv - Atanas Korabov"}],["$","meta","12",{"property":"og:locale","content":"en_US"}],["$","meta","13",{"property":"og:image","content":"https://akbv.dev/static/images/php-skype-logo-fitted.png"}],["$","meta","14",{"property":"og:type","content":"article"}],["$","meta","15",{"property":"article:published_time","content":"2023-08-02T00:00:00.000Z"}],["$","meta","16",{"property":"article:modified_time","content":"2023-08-02T00:00:00.000Z"}],["$","meta","17",{"property":"article:author","content":"Atanas Korabov"}],["$","meta","18",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","19",{"name":"twitter:title","content":"Skype Web API for PHP: A Comprehensive Guide"}],["$","meta","20",{"name":"twitter:description","content":"Learn how to integrate the Skype Web API into your PHP projects with the php-skype library. This comprehensive guide covers installation, usage, and provides examples for various functionalities."}],["$","meta","21",{"name":"twitter:image","content":"https://akbv.dev/static/images/php-skype-logo-fitted.png"}],["$","meta","22",{"name":"next-size-adjust"}]] 3:[["$","html",null,{"lang":"en-us","className":"__variable_8c5df3 scroll-smooth","suppressHydrationWarning":true,"children":[["$","link",null,{"rel":"apple-touch-icon","sizes":"76x76","href":"/static/favicons/apple-touch-icon.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"32x32","href":"/static/favicons/favicon-32x32.png"}],["$","link",null,{"rel":"icon","type":"image/png","sizes":"16x16","href":"/static/favicons/favicon-16x16.png"}],["$","link",null,{"rel":"manifest","href":"/static/favicons/site.webmanifest"}],["$","link",null,{"rel":"mask-icon","href":"/static/favicons/safari-pinned-tab.svg","color":"#5bbad5"}],["$","meta",null,{"name":"msapplication-TileColor","content":"#000000"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#fff"}],["$","meta",null,{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#000"}],["$","link",null,{"rel":"alternate","type":"application/rss+xml","href":"/feed.xml"}],["$","body",null,{"className":"bg-white text-black antialiased dark:bg-gray-950 dark:text-white","children":["$","$L6",null,{"children":[["$undefined","$undefined","$undefined","$undefined",[["$","$L7",null,{"strategy":"afterInteractive","src":"https://www.googletagmanager.com/gtag/js?id=G-E6QL49GCHT"}],["$","$L7",null,{"strategy":"afterInteractive","id":"ga-script","children":"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', 'G-E6QL49GCHT');\n "}]]],["$","section",null,{"className":"mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0","children":["$","div",null,{"className":"flex h-screen flex-col justify-between font-sans","children":[["$","$L8",null,{"kbarConfig":{"searchDocumentsPath":"search.json"},"children":[["$","header",null,{"className":"flex items-center justify-between py-10","children":[["$","div",null,{"children":["$","$L9",null,{"href":"/","aria-label":"akbv.dev","children":["$","div",null,{"className":"flex items-center justify-between","children":[["$","div",null,{"className":"mr-3","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","xmlnsXlink":"http://www.w3.org/1999/xlink","width":53.87,"height":43.61,"viewBox":"344.564 330.278 111.737 91.218","children":[["$","defs",null,{"children":[["$","path",null,{"id":"logo_svg__a","d":"M453.3 331.28v28.57l-64.66 58.65v-30.08l64.66-57.14Z"}],["$","path",null,{"id":"logo_svg__c","d":"M410.23 331.28v28.57l-64.67 58.65v-30.08l64.67-57.14Z"}],["$","linearGradient",null,{"id":"logo_svg__b","x1":"0%","x2":"100%","y1":"0%","y2":"0%","children":[["$","stop",null,{"offset":"0%","style":{"stopColor":"#00ff8f"}}],["$","stop",null,{"offset":"100%","style":{"stopColor":"#00a1ff"}}]]}]]}],["$","use",null,{"xlinkHref":"#logo_svg__a","fill":"url(#logo_svg__b)"}],["$","use",null,{"xlinkHref":"#logo_svg__c","fill":"url(#logo_svg__b)"}]]}]}],["$","div",null,{"className":"hidden h-6 text-2xl font-semibold sm:block","children":"akbv.dev"}]]}]}]}],["$","div",null,{"className":"flex items-center leading-5 space-x-4 sm:space-x-6","children":[[["$","$L9",null,{"href":"/blog","className":"hidden sm:block font-medium text-gray-900 dark:text-gray-100","children":"Blog"}],["$","$L9",null,{"href":"/tags","className":"hidden sm:block font-medium text-gray-900 dark:text-gray-100","children":"Tags"}],["$","$L9",null,{"href":"/projects","className":"hidden sm:block font-medium text-gray-900 dark:text-gray-100","children":"Projects"}],["$","$L9",null,{"href":"/about","className":"hidden sm:block font-medium text-gray-900 dark:text-gray-100","children":"About"}]],["$","$La",null,{"aria-label":"Search","children":["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","fill":"none","viewBox":"0 0 24 24","strokeWidth":1.5,"stroke":"currentColor","className":"text-gray-900 dark:text-gray-100 h-6 w-6","children":["$","path",null,{"strokeLinecap":"round","strokeLinejoin":"round","d":"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"}]}]}],["$","$Lb",null,{}],["$","$Lc",null,{}]]}]]}],["$","main",null,{"className":"mb-auto","children":["$","$Ld",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$Le",null,{}],"templateStyles":"$undefined","notFound":["$","div",null,{"className":"flex flex-col items-start justify-start md:mt-24 md:flex-row md:items-center md:justify-center md:space-x-6","children":[["$","div",null,{"className":"space-x-2 pb-8 pt-6 md:space-y-5","children":["$","h1",null,{"className":"text-6xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 md:border-r-2 md:px-6 md:text-8xl md:leading-14","children":"404"}]}],["$","div",null,{"className":"max-w-md","children":[["$","p",null,{"className":"mb-4 text-xl font-bold leading-normal md:text-2xl","children":"Sorry we couldn't find this page."}],["$","p",null,{"className":"mb-8","children":"But dont worry, you can find plenty of other things on our homepage."}],["$","$L9",null,{"href":"/","className":"focus:shadow-outline-blue inline rounded-lg border border-transparent bg-blue-600 px-4 py-2 text-sm font-medium leading-5 text-white shadow transition-colors duration-150 hover:bg-blue-700 focus:outline-none dark:hover:bg-blue-500","children":"Back to homepage"}]]}]]}],"notFoundStyles":[],"childProp":{"current":["$","$Ld",null,{"parallelRouterKey":"children","segmentPath":["children","blog","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$Le",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$Ld",null,{"parallelRouterKey":"children","segmentPath":["children","blog","children",["slug","skype-web-api-for-php","c"],"children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$Le",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$Lf",null],"segment":"__PAGE__?{\"slug\":[\"skype-web-api-for-php\"]}"},"styles":[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/aa77ab9bba161dd5.css","precedence":"next"}]]}],"segment":["slug","skype-web-api-for-php","c"]},"styles":[]}],"segment":"blog"},"styles":[]}]}]]}],["$","footer",null,{"children":["$","div",null,{"className":"mt-16 flex flex-col items-center","children":[["$","div",null,{"className":"mb-3 flex space-x-4","children":[["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"mailto:address@yoursite.com","children":[["$","span",null,{"className":"sr-only","children":"mail"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 20 20","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":[["$","path",null,{"d":"M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z"}],["$","path",null,{"d":"M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z"}]]}]]}],["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://github.com/a-kbv","children":[["$","span",null,{"className":"sr-only","children":"github"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":["$","path",null,{"d":"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"}]}]]}],["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://facebook.com","children":[["$","span",null,{"className":"sr-only","children":"facebook"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":["$","path",null,{"d":"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"}]}]]}],null,["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://www.linkedin.com/in/atanaskorabov/","children":[["$","span",null,{"className":"sr-only","children":"linkedin"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":["$","path",null,{"d":"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"}]}]]}],["$","a",null,{"className":"text-sm text-gray-500 transition hover:text-gray-600","target":"_blank","rel":"noopener noreferrer","href":"https://twitter.com/AtanasKorabov","children":[["$","span",null,{"className":"sr-only","children":"twitter"}],["$","svg",null,{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 24 24","className":"fill-current text-gray-700 hover:text-primary-500 dark:text-gray-200 dark:hover:text-primary-400 h-6 w-6","children":["$","path",null,{"d":"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"}]}]]}]]}],["$","div",null,{"className":"mb-2 flex space-x-2 text-sm text-gray-500 dark:text-gray-400","children":[["$","div",null,{"children":"Atanas Korabov"}],["$","div",null,{"children":" • "}],["$","div",null,{"children":"© 2023"}],["$","div",null,{"children":" • "}],["$","$L9",null,{"href":"/","children":"akbv - Atanas Korabov"}]]}],["$","div",null,{"className":"mb-8 text-sm text-gray-500 dark:text-gray-400","children":["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://github.com/timlrx/tailwind-nextjs-starter-blog","children":"Tailwind Nextjs Theme"}]}]]}]}]]}]}]]}]}]]}],null] 10:I{"id":2630,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","797:static/chunks/app/blog/[...slug]/page-3271df622a55882d.js"],"name":"","async":false} 11:I{"id":2529,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","797:static/chunks/app/blog/[...slug]/page-3271df622a55882d.js"],"name":"","async":false} 12:I{"id":5940,"chunks":["685:static/chunks/685-3720320f1c2a7834.js","797:static/chunks/app/blog/[...slug]/page-3271df622a55882d.js"],"name":"","async":false} f:[["$","script",null,{"type":"application/ld+json","dangerouslySetInnerHTML":{"__html":"{\"@context\":\"https://schema.org\",\"@type\":\"BlogPosting\",\"headline\":\"Skype Web API for PHP: A Comprehensive Guide\",\"datePublished\":\"2023-08-02T00:00:00.000Z\",\"dateModified\":\"2023-08-02T00:00:00.000Z\",\"description\":\"Learn how to integrate the Skype Web API into your PHP projects with the php-skype library. This comprehensive guide covers installation, usage, and provides examples for various functionalities.\",\"url\":\"https://akbv.dev/blog/skype-web-api-for-php\",\"author\":[{\"@type\":\"Person\",\"name\":\"Atanas Korabov\"}]}"}}],["$","section",null,{"className":"mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0","children":[["$","$L10",null,{}],["$","article",null,{"children":["$","div",null,{"children":[["$","div",null,{"className":"space-y-1 pb-10 text-center dark:border-gray-700","children":[["$","div",null,{"className":"w-full","children":["$","div",null,{"className":"relative mt-6 -mx-6 md:-mx-8 2xl:-mx-24","children":["$","div",null,{"className":"aspect-[2/1] w-full relative","children":["$","img",null,{"src":"/static/images/php-skype-logo-fitted.png","alt":"Skype Web API for PHP: A Comprehensive Guide","fill":true,"className":"object-cover"}]}]}]}],["$","div",null,{"className":"pt-10 relative","children":["$","h1",null,{"className":"text-3xl font-extrabold leading-9 tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl sm:leading-10 md:text-5xl md:leading-14","children":"Skype Web API for PHP: A Comprehensive Guide"}]}],["$","div",null,{"className":"flex justify-center gap-5 py-4","children":[["$","span",null,{"className":"flex items-center gap-1.5","children":[["$","svg",null,{"stroke":"currentColor","fill":"none","strokeWidth":"2","viewBox":"0 0 24 24","aria-hidden":"true","className":"h-5 w-5","children":["$undefined",[["$","path","0",{"strokeLinecap":"round","strokeLinejoin":"round","d":"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z","children":"$undefined"}]]],"style":{"color":"$undefined"},"height":"1em","width":"1em","xmlns":"http://www.w3.org/2000/svg"}],1382," words"]}],["$","span",null,{"className":"flex items-center gap-1.5","children":[["$","svg",null,{"stroke":"currentColor","fill":"none","strokeWidth":"2","viewBox":"0 0 24 24","aria-hidden":"true","className":"h-5 w-5","children":["$undefined",[["$","path","0",{"strokeLinecap":"round","strokeLinejoin":"round","d":"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z","children":"$undefined"}]]],"style":{"color":"$undefined"},"height":"1em","width":"1em","xmlns":"http://www.w3.org/2000/svg"}],"7 min read"]}]]}]]}],["$","div",null,{"className":"prose max-w-none py-4 dark:prose-invert","children":[["$","p",null,{"children":"If you're looking to integrate the Skype Web API into your PHP projects, then the php-skype library is your go-to solution. This library provides a user-friendly interface to interact with the Skype Web API and offers comprehensive documentation and examples to help you get started quickly. In this guide, we will walk you through the installation process, explain how to use the library in your project, and provide examples for various functionalities."}],["$","h2",null,{"id":"installation","children":[["$","a",null,{"href":"#installation","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"icon icon-link"}]}],"Installation"]}],["$","p",null,{"children":"To get started with the php-skype library, you need to install it using Composer. Open your terminal and run the following command:"}],["$","$L11",null,{"className":"language-bash","children":["$","code",null,{"className":"code-highlight language-bash","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token function","children":"composer"}]," require akbv/php-skype\n"]}]}]}],["$","p",null,{"children":"This will install the php-skype library along with its dependencies."}],["$","h2",null,{"id":"usage","children":[["$","a",null,{"href":"#usage","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"icon icon-link"}]}],"Usage"]}],["$","p",null,{"children":"To use the php-skype library, you need to create a new instance of the Connection class. The constructor accepts three parameters: your Skype email address, your Skype password, and the path to the directory where the session files will be stored. The session files are used to store the authentication token and other information required for the Skype Web API to work properly."}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$connection"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token keyword","children":"new"}]," ",["$","span",null,{"className":"token class-name class-name-fully-qualified","children":[["$","span",null,{"className":"token punctuation","children":"\\"}],"Akbv",["$","span",null,{"className":"token punctuation","children":"\\"}],"PhpSkype",["$","span",null,{"className":"token punctuation","children":"\\"}],"Connection"]}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token single-quoted-string string","children":"'email'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token single-quoted-string string","children":"'password'"}],["$","span",null,{"className":"token punctuation","children":","}]," ",["$","span",null,{"className":"token constant","children":"__DIR__"}]," ",["$","span",null,{"className":"token operator","children":"."}]," ",["$","span",null,{"className":"token single-quoted-string string","children":"'/var/session'"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"Once you have created a new instance of the Connection class, you can use it to load one-to-one or group conversations. To load a one-to-one conversation, you need to pass the Skype ID of the other person as a parameter to the chat() method. For example, if you want to load the conversation with the Skype ID \"8:live:username\", you can do so by calling the chat() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$chat"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"chat"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token single-quoted-string string","children":"'8:live:username'"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"To send a message to the other person, you can use the send() method of the Chat class. For example, if you want to send the message \"Hello World!\" to the other person, you can do so by calling the send() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$message"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"send"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token single-quoted-string string","children":"'Hello World!'"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"You have now successfully sent a message to the other person. To receive messages from the other person, you can call method getMessages() of the Chat class. This method returns an array of Message objects. Each Message object contains information about the message, such as its content, sender, timestamp, etc. For example, if you want to receive all messages sent by the other person, you can do so by calling the getMessages() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$messagesDto"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getMessages"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$messages"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$messagesDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getMessages"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$syncState"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$messagesDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getSyncState"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]]}]}],["$","p",null,{"children":"If you want to fetch older messages, you can pass the $syncState we've received from the previous call to the getMessages() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$messagesDto"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getMessages"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$syncState"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$messages"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$messagesDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getMessages"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$syncState"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$messagesDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getSyncState"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]]}]}],["$","p",null,{"children":"To load all user contacts, you can use the contacts() method of the Connection class. This method returns an array of Contact objects. Each Contact object contains information about the contact, such as its Skype ID, display name, etc. For example, if you want to load all user contacts, you can do so by calling the contacts() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$contacts"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"fetchContacts"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"To load recent conversations, you can use the fetchConversations() method of the Connection class. This method returns an Dto object containing an array of Conversation objects and a sync state. Each Conversation object contains information about the conversation, such as its Skype ID, display name, etc. For example, if you want to load recent conversations, you can do so by calling the fetchConversations() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$conversationsDto"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"fetchConversations"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$conversations"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$conversationsDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getConversations"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$syncState"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$conversationsDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getSyncState"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]]}]}],["$","p",null,{"children":"If you want to fetch older conversations, you can pass the $syncState we've received from the previous call to the fetchConversations() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$conversationsDto"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"fetchConversations"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$syncState"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$conversations"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$conversationsDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getConversations"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$syncState"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$conversationsDto"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getSyncState"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]]}]}],["$","p",null,{"children":"To create a new Group conversation with multiple users, you can use the groupChat() method of the Connection class. This method accepts two parameters: an array of Skype IDs of the users you want to add to the conversation and an array of Skype IDs of the users you want to make admins of the conversation. For example, if you want to create a new Group conversation with the Skype IDs \"8:live:username1\", \"8:live:username2\", and \"8:live:username3\", you can do so by calling the groupChat() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":[["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token comment doc-comment","children":"/**\n"}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token comment doc-comment","children":" * Create a new group conversation.\n"}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token comment doc-comment","children":[" * ",["$","span",null,{"className":"token keyword","children":"@var"}]," ",["$","span",null,{"className":"token class-name","children":[["$","span",null,{"className":"token punctuation","children":"\\"}],"Akbv",["$","span",null,{"className":"token punctuation","children":"\\"}],"PhpSkype",["$","span",null,{"className":"token punctuation","children":"\\"}],"Chat"]}]," ",["$","span",null,{"className":"token parameter","children":"$$chat"}],"\n"]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token comment doc-comment","children":[" * ",["$","span",null,{"className":"token keyword","children":"@param"}]," ",["$","span",null,{"className":"token class-name","children":[["$","span",null,{"className":"token keyword","children":"string"}],["$","span",null,{"className":"token punctuation","children":"["}],["$","span",null,{"className":"token punctuation","children":"]"}]]}]," ",["$","span",null,{"className":"token parameter","children":"$$members"}],"\n"]}]}],["$","span",null,{"className":"code-line","children":["$","span",null,{"className":"token comment doc-comment","children":[" * ",["$","span",null,{"className":"token keyword","children":"@param"}]," ",["$","span",null,{"className":"token class-name","children":[["$","span",null,{"className":"token keyword","children":"string"}],["$","span",null,{"className":"token punctuation","children":"["}],["$","span",null,{"className":"token punctuation","children":"]"}]]}]," ",["$","span",null,{"className":"token parameter","children":"$$admins"}],"\n"]}]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token comment doc-comment","children":" */"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$chat"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"groupChat"}],["$","span",null,{"className":"token punctuation","children":"("}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"["}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token single-quoted-string string","children":"'live:.cid.3e1fbf86661d076d'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token single-quoted-string string","children":"'live:.cid.3e1fbf88961d076d'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token single-quoted-string string","children":"'live:.cid.3e1fbf88961d076d'"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"]"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"["}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getUser"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"getUsername"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":","}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token punctuation","children":"]"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}]]}]}],["$","p",null,{"children":"To set the topic of a Group conversation, you can use the setTopic() method of the Chat class. This method accepts one parameter: the topic you want to set for the conversation. For example, if you want to set the topic of the conversation to \"New Group Chat\", you can do so by calling the setTopic() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$chat"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"setTopic"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token single-quoted-string string","children":"'New Group Chat'"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"To add a user to a Group conversation, you can use the addMember() method of the Chat class. This method accepts one parameter: the Skype ID of the user you want to add to the conversation. For example, if you want to add the user with the Skype ID \"8:live:username\" to the conversation, you can do so by calling the addMember() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"addMember"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token single-quoted-string string","children":"'8:live:username'"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"To remove a user from a Group conversation, you can use the removeMember() method of the Chat class. This method accepts one parameter: the Skype ID of the user you want to remove from the conversation. For example, if you want to remove the user with the Skype ID \"8:live:username\" from the conversation, you can do so by calling the removeMember() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"removeMember"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token single-quoted-string string","children":"'8:live:username'"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"To leave a Group conversation, you can use the leave() method of the Chat class. For example, if you want to leave the conversation, you can do so by calling the leave() method as follows:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$chat"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"leave"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"The php-skype library also provides support for handling events that occur within the Skype Web API. You can subscribe to events such as contact updates, conversation updates, or message updates to perform actions based on these events."}],["$","p",null,{"children":"Here's an example of how you can handle events using the php-skype library:"}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":[["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token comment","children":"// Start the event loop"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$eventLoop"}]," ",["$","span",null,{"className":"token operator","children":"="}]," ",["$","span",null,{"className":"token keyword","children":"new"}]," ",["$","span",null,{"className":"token class-name class-name-fully-qualified","children":[["$","span",null,{"className":"token punctuation","children":"\\"}],"Akbv",["$","span",null,{"className":"token punctuation","children":"\\"}],"PhpSkype",["$","span",null,{"className":"token punctuation","children":"\\"}],"Service",["$","span",null,{"className":"token punctuation","children":"\\"}],"EventLoop"]}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$connection"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token comment","children":"// Define event handlers"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$eventLoop"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"onEvent"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token keyword","children":"function"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$event"}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// Handle the event"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token function","children":"var_dump"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$event"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$eventLoop"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"onError"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token keyword","children":"function"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$error"}],["$","span",null,{"className":"token punctuation","children":")"}]," ",["$","span",null,{"className":"token punctuation","children":"{"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token comment","children":"// Handle errors"}],"\n"]}],["$","span",null,{"className":"code-line","children":[" ",["$","span",null,{"className":"token function","children":"var_dump"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token variable","children":"$$error"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token punctuation","children":"}"}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}],["$","span",null,{"className":"code-line","children":"\n"}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token comment","children":"// Continuously handle incoming events"}],"\n"]}],["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$eventLoop"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"run"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]]}]}],["$","p",null,{"children":["In the above example, we create an instance of the EventLoop class, passing the Connection object as a parameter. We then define event handlers using the ",["$","code",null,{"children":"onEvent()"}]," method and ",["$","code",null,{"children":"onError()"}]," method. The ",["$","code",null,{"children":"onEvent()"}]," method is called whenever an event occurs, and the ",["$","code",null,{"children":"onError()"}]," method is called if an error occurs during event handling. Inside the event handler, you can perform actions based on the type of event that occurred."]}],["$","p",null,{"children":["To stop the event loop, you can use the ",["$","code",null,{"children":"stop()"}]," method:"]}],["$","$L11",null,{"className":"language-php","children":["$","code",null,{"className":"language-php code-highlight","children":["$","span",null,{"className":"code-line","children":[["$","span",null,{"className":"token variable","children":"$$eventLoop"}],["$","span",null,{"className":"token operator","children":"->"}],["$","span",null,{"className":"token function","children":"stop"}],["$","span",null,{"className":"token punctuation","children":"("}],["$","span",null,{"className":"token punctuation","children":")"}],["$","span",null,{"className":"token punctuation","children":";"}],"\n"]}]}]}],["$","p",null,{"children":"By using the event loop, you can continuously handle incoming events from the Skype Web API and perform custom actions based on those events. This allows you to build real-time functionality and enhance the integration of Skype into your PHP projects."}],["$","h2",null,{"id":"supported-features","children":[["$","a",null,{"href":"#supported-features","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"icon icon-link"}]}],"Supported Features"]}],["$","p",null,{"children":"The php-skype library supports a wide range of features provided by the Skype Web API. Here are some of the supported functionalities:"}],["$","ul",null,{"children":[["$","li",null,{"children":"Login with Microsoft Account (SOAP)"}],["$","li",null,{"children":"Login with Microsoft Account (LIVE) [Coming soon..]"}],["$","li",null,{"children":"Get Contacts"}],["$","li",null,{"children":"Get Conversations"}],["$","li",null,{"children":"Create one-to-one chats"}],["$","li",null,{"children":"Create group chats"}],["$","li",null,{"children":"Get user profile"}],["$","li",null,{"children":"Get user invites"}],["$","li",null,{"children":"Configure endpoint"}],["$","li",null,{"children":"Subscribe to contact and conversation events"}],["$","li",null,{"children":"Send messages (text, files, images, contacts)"}],["$","li",null,{"children":"Edit messages"}],["$","li",null,{"children":"Delete messages"}],["$","li",null,{"children":"Set consumption horizon"}],["$","li",null,{"children":"Set typing indicator"}],["$","li",null,{"children":"Get chat messages"}],["$","li",null,{"children":"Set group chat topic"}],["$","li",null,{"children":"Set group chat as moderated/unmoderated"}],["$","li",null,{"children":"Set group chat as open/closed for joining"}],["$","li",null,{"children":"Set group chat history disclosed/undisclosed"}],["$","li",null,{"children":"Add and remove group chat members"}],["$","li",null,{"children":"Make a group chat member an admin"}],["$","li",null,{"children":"Remove admin status from a group chat member"}],["$","li",null,{"children":"Leave a group chat"}]]}],["$","p",null,{"children":"These functionalities provide you with the flexibility to create powerful and interactive Skype-integrated applications."}],["$","p",null,{"children":["More examples can be found in the php skype library repository in the examples folder. ",["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://github.com/a-kbv/php-skype/blob/main/src/Examples/General.php","children":"Examples"}]]}],["$","h2",null,{"id":"documentation","children":[["$","a",null,{"href":"#documentation","aria-hidden":"true","tabIndex":"-1","children":["$","span",null,{"className":"icon icon-link"}]}],"Documentation"]}],["$","p",null,{"children":["The php-skype library provides comprehensive documentation for all its features. You can find the documentation in the docs folder of the library repository. ",["$","a",null,{"target":"_blank","rel":"noopener noreferrer","href":"https://a-kbv.github.io/php-skype/","children":"Documentation"}]]}]]}],["$","div",null,{"className":"pb-6 pt-6 text-center text-gray-700 dark:text-gray-300","id":"comment","children":["$","$L12",null,{"slug":"skype-web-api-for-php"}]}],["$","footer",null,{"children":["$","div",null,{"className":"flex flex-col text-sm font-medium sm:flex-row sm:justify-between sm:text-base","children":[["$","div",null,{"className":"pt-4 xl:pt-8","children":["$","$L9",null,{"href":"/blog/windows-activation-guide-using-kms-product-key","className":"text-primary-500 hover:text-primary-600 dark:hover:text-primary-400","aria-label":"Previous post: Windows Activation Guide Using KMS Client Product Key","children":["← ","Windows Activation Guide Using KMS Client Product Key"]}]}],["$","div",null,{"className":"pt-4 xl:pt-8","children":["$","$L9",null,{"href":"/blog/set-up-development-environment-in-ubuntu-22-04-lamp-and-more","className":"text-primary-500 hover:text-primary-600 dark:hover:text-primary-400","aria-label":"Next post: Set Up Development Environment in Ubuntu 22.04 - LAMP and More","children":["Set Up Development Environment in Ubuntu 22.04 - LAMP and More"," →"]}]}]]}]}]]}]}]]}]]