(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4764],{28366:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var i=r(t(64938)),l=t(85893),o=(0,i.default)((0,l.jsx)("path",{d:"m14 12-2 2-2-2 2-2 2 2zm-2-6 2.12 2.12 2.5-2.5L12 1 7.38 5.62l2.5 2.5L12 6zm-6 6 2.12-2.12-2.5-2.5L1 12l4.62 4.62 2.5-2.5L6 12zm12 0-2.12 2.12 2.5 2.5L23 12l-4.62-4.62-2.5 2.5L18 12zm-6 6-2.12-2.12-2.5 2.5L12 23l4.62-4.62-2.5-2.5L12 18z"}),"Api");n.Z=o},83707:function(e,n,t){"use strict";var r=t(64836);n.Z=void 0;var i=r(t(64938)),l=t(85893),o=(0,i.default)((0,l.jsx)("path",{d:"M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3v-1zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3zm4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3z"}),"Webhook");n.Z=o},37791:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/integration",function(){return t(66057)}])},66057:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Page}});var r=t(85893);t(67294);var i=t(7243),l=t(66565),o=t(2734),a=t(26447),s=t(23972),c=t(21987),d=t(69397),g=t(46008),h=t(21830),m=t(93446),u=t(6831);function ProfileLink(){return(0,r.jsxs)(a.Z,{direction:"row",style:{alignItems:"center"},flexWrap:"wrap",gap:"1rem",children:[(0,r.jsx)(s.Z,{variant:"h5",style:{maxWidth:"25rem",marginLeft:"auto",marginRight:"auto"},children:"Connect your social media platforms to your Skelly profile"}),(0,r.jsxs)(a.Z,{direction:"column",gap:"0.5rem",children:[(0,r.jsx)(s.Z,{variant:"subtitle1",children:"Download Skelly icons"}),(0,r.jsxs)(a.Z,{direction:"row",gap:"1rem",children:[(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(c.Z,{style:{padding:"1rem",backgroundColor:g.Kj.dark.background,display:"flex",fontSize:0},children:(0,r.jsx)("img",{src:"/brand/logo_dark.svg",style:{height:"5rem",width:"5rem",margin:"auto"}})}),(0,r.jsxs)(a.Z,{direction:"row",children:[(0,r.jsx)(d.Z,{onClick:()=>{(0,m.A)("/brand/logo_dark.svg","logo_dark.svg")},children:(0,r.jsx)(s.Z,{variant:"body1",children:"svg"})}),(0,r.jsx)(d.Z,{onClick:()=>{(0,m.A)("/brand/logo_dark.png","logo_dark.png")},children:(0,r.jsx)(s.Z,{variant:"body1",children:"png"})})]})]}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(c.Z,{style:{padding:"1rem",backgroundColor:g.Kj.light.background,display:"flex",fontSize:0},children:(0,r.jsx)("img",{src:"/brand/logo_light.svg",style:{height:"5rem",width:"5rem",margin:"auto"}})}),(0,r.jsxs)(a.Z,{direction:"row",children:[(0,r.jsx)(d.Z,{onClick:()=>{(0,m.A)("/brand/logo_light.svg","logo_light.svg")},children:(0,r.jsx)(s.Z,{variant:"body1",children:"svg"})}),(0,r.jsx)(d.Z,{onClick:()=>{(0,m.A)("/brand/logo_light.png","logo_light.png")},children:(0,r.jsx)(s.Z,{variant:"body1",children:"png"})})]})]})]}),(0,r.jsxs)(a.Z,{style:{marginTop:"0.5rem"},children:[(0,r.jsx)(s.Z,{variant:"subtitle1",children:"Sample profile link"}),(0,r.jsx)(h.Z,{messageId:"https://skelly.gg/g/s1mple",reactIntl:!1,onClick:()=>{let e="https://skelly.gg/g/s1mple";(0,u._)("SkellyProfile",e),window.open(e,"_blank")}})]})]})]})}var p=t(28366),x=t(14282);function API(){return(0,r.jsxs)(a.Z,{direction:"row-reverse",gap:"1rem",style:{display:"flex",alignItems:"center"},flexWrap:"wrap",children:[(0,r.jsxs)(a.Z,{direction:"row",gap:"0.5rem",style:{marginLeft:"auto",marginRight:"auto"},children:[(0,r.jsx)(p.Z,{fontSize:"large"}),(0,r.jsxs)(a.Z,{direction:"column",children:[(0,r.jsx)(s.Z,{variant:"h5",style:{maxWidth:"25rem"},children:"Effortlessly integrate your profile into your own website and services through our APIs"}),(0,r.jsx)(x.Z,{target:"GitHub",url:"https://www.npmjs.com/package/skelly-app",text:"Leverage our npm package"})]})]}),(0,r.jsxs)(a.Z,{style:{overflowX:"hidden"},children:[(0,r.jsx)(s.Z,{variant:"subtitle1",children:"Sample code"}),(0,r.jsx)(c.Z,{style:{padding:"1rem",width:"fit-content",userSelect:"text"},children:(0,r.jsx)("pre",{style:{margin:0,width:"100%"},children:(0,r.jsx)("code",{children:y})})}),(0,r.jsx)(s.Z,{variant:"subtitle1",style:{marginTop:"0.5rem"},children:"Sample output"}),(0,r.jsx)(c.Z,{style:{padding:"1rem",width:"fit-content",userSelect:"text"},children:(0,r.jsx)("pre",{style:{margin:0,width:"fit-content"},children:(0,r.jsx)("code",{children:f})})})]})]})}let y="async function fetchProfile() {\n const response = await fetch(\n `https://skelly.gg/api/g/12754`\n );\n const data = await response.json();\n console.log(data);\n};",f='{\n "friend_id": "12754",\n "customized_id": "Keria",\n "visibility": "Public",\n "gamer_names": [\n "Keria"\n ],\n "real_name": "류민석 | Ryu Min-seok",\n "nationalities": [\n "KR"\n ],\n ...';var j=t(83707),k=t(11163);function Webhooks(){return(0,k.useRouter)(),(0,r.jsxs)(a.Z,{direction:"row",gap:"1rem",style:{display:"flex",alignItems:"center"},flexWrap:"wrap",children:[(0,r.jsxs)(a.Z,{direction:"row",gap:"0.5rem",style:{marginLeft:"auto",marginRight:"auto"},children:[(0,r.jsx)(j.Z,{fontSize:"large"}),(0,r.jsxs)(a.Z,{direction:"column",children:[(0,r.jsx)(s.Z,{variant:"h5",style:{maxWidth:"25rem"},children:"Seamlessly update your services trough real-time webhooks"}),(0,r.jsx)(x.Z,{target:"GitHub",url:"https://github.com/Skelly-gg/skelly-webhooks",text:"Go to the documentation"})]})]}),(0,r.jsxs)(a.Z,{style:{overflowX:"hidden"},children:[(0,r.jsx)(s.Z,{variant:"subtitle1",children:"Sample events for Dota 2"}),(0,r.jsx)(c.Z,{style:{padding:"1rem",width:"fit-content",userSelect:"text"},children:(0,r.jsx)("pre",{style:{margin:0,width:"100%"},children:(0,r.jsx)("code",{children:w})})})]})]})}let w='{\n "mmr": 7521,\n "confidence": 85,\n "gameMode": "GameMode_AllDraft",\n "lobbyType": "DOTA_lobby_type_name_ranked",\n "gameState": "playing",\n "players": [\n {\n "steamId": "76561198061291281",\n "name": "1/2",\n "pickConfirmed": true,\n "hero": "legion_commander",\n "team": 2,\n "role": 0,\n "rank": 80,\n "teamSlot": 4,\n "playerIndex": 3,\n "accountId": "101025553"\n },\n ...\n}';function Integration(){return(0,o.Z)(),(0,r.jsx)("div",{style:{width:"100%",maxWidth:1200,marginLeft:"auto",marginRight:"auto",boxSizing:"border-box",padding:"1rem",marginTop:"1rem",marginBottom:"2rem"},children:(0,r.jsxs)(a.Z,{direction:"column",gap:"3rem",children:[(0,r.jsx)(s.Z,{variant:"h3",style:{maxWidth:"40rem",textAlign:"center",marginLeft:"auto",marginRight:"auto"},children:"Blend other platforms with Skelly to amplify your digital presence"}),(0,r.jsx)(ProfileLink,{}),(0,r.jsx)(API,{}),(0,r.jsx)(Webhooks,{})]})})}function Page(){let{title:e,metaName:n,metaProperty:t}=(0,l.$)("/integration","Integration","Integrate Skelly with other platforms","Skelly, Skelly.gg, integration, profile, API, RESTFul, icons, webhooks, npm, npm packages",{image:"https://skelly.gg/img/linkPreview/skelly_legal.jpg"});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.Z,{title:e,metaName:n,metaProperty:t,canonical:"https://skelly.gg/integration",children:(0,r.jsx)(Integration,{})})})}},14282:function(e,n,t){"use strict";t.d(n,{Z:function(){return LinkExternal}});var r=t(85893);t(67294);var i=t(23972),l=t(6831),o=t(12039);function LinkExternal(e){let{target:n,url:t,text:a}=e;return(0,r.jsx)(i.Z,{onClick:()=>{(0,l._)(n,t),(0,o.n)(t,"_blank")},sx:{cursor:"pointer",backgroundColor:"blue","&:hover":{textDecoration:"underline"}},variant:"body1",component:"span",children:a})}},93446:function(e,n,t){"use strict";function downloadDocument(e,n){let t=document.createElement("a");t.href=e,t.download=n,t.click()}t.d(n,{A:function(){return downloadDocument}})},66565:function(e,n,t){"use strict";function getStandardSEO(e,n,t,r,i){let l="Skelly | ".concat(n),o="https://skelly.gg".concat(e),a=(null==i?void 0:i.image)||"https://skelly.gg/img/linkPreview/skelly_welcome_3.jpg",s={},c={};return s.description=t,s.keywords=r,c["og:url"]=o,c["og:type"]="website",c["og:title"]=l,c["og:description"]=t,c["og:image"]=a,s["twitter:card"]=a,c["twitter:domain"]="skelly.gg",c["twitter:url"]=o,s["twitter:title"]=l,s["twitter:description"]=t,s["twitter:image"]=a,{title:l,metaName:s,metaProperty:c}}t.d(n,{$:function(){return getStandardSEO}})}},function(e){e.O(0,[5208,2680,5834,7243,9774,2888,179],function(){return e(e.s=37791)}),_N_E=e.O()}]);