기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Cloud Code

Cloud Code

LiveOps
​
​
Cloud Code
  • Overview
  • Get started
  • Server authority
  • Cloud Code C# modules
  • Cloud Code JavaScript scripts
    • Overview
    • Get started
    • Concepts
    • Tutorials
      • Run scripts
      • Write scripts
      • Interact with cross-player data
      • Integrate with CI/CD
      • Use Access Control
      • Test run a script
      • Integrate with other Unity Services
      • Integrate with external services
      • Use Cases
    • Reference
  • Logging
  • Use-case samples
  • Privacy and consent
  1. Cloud Code

외부 서비스와 연동

Call public internet endpoints and public APIs from your Cloud Code scripts.
읽는 시간 1분
최근 업데이트: 9달 전

Cloud Code를 사용하면 UGS에 속한 공개 API를 비롯한 모든 공개 인터넷 엔드포인트를 호출할 수 있습니다.
다음 예시는 Cat Facts API를 호출하여 고양이에 관한 무작위 정보를 가져오는 방법을 보여 줍니다.
JavaScript
const axios = require("axios-0.21");module.exports = async ({ params, context, logger }) => { let result; try { const catFactUrl = `https://catfact.ninja/fact`; result = await axios.get(catFactUrl); return result.data; } catch (err) { logger.error("Failed to call out to Cat Facts", {"error.message": err.message}); throw err; }};
자세한 내용을 알아보려면 다른 Unity 서비스와 연동하는 방법을 참고하십시오.

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.

  • 보고 있는 페이지
    • JavaScript


이 페이지의 문제 보고