XboxLiveDevelopment


Accessing Xbox Live Services from JavaScript


I'm struggling with how to access the Xbox Live services API from a JavaScript UWP app. The relevant documentation like this page:
https://developer.microsoft.com/en-us/games/xbox/docs/xboxlive/using-xbox-live/auth/authentication-for-uwp-projects
... seems to generally explain C++, but has no JavaScript samples.
Are there examples anywhere for accessing XSAPI from JavasScript? I'm just trying to get something basic like initial signin working.
In general, HTML5 and JavaScript seem to be well supported in the Xbox Live Creators Program. I can build things easily in HTML5 in Visual Studio, run them on my Xbox One dev kit, get gamepad input, etc. This is the first real snag I've hit.
Thanks.
I created an unofficial sample to get you started. It uses the WinRT nuget package (which JavaScript can call) and makes a basic sign in call. You'll have to refer to the other C++ samples for more complex usage
https://github.com/jasonsandlin/xbox-live-samples/tree/js/Samples/CreatorsSDK/Social/UWP/JS/Social
We'll put on our backlog to make an official sample. Thanks
I created an unofficial sample to get you started. It uses the WinRT nuget package (which JavaScript can call) and makes a basic sign in call. You'll have to refer to the other C++ samples for more complex usage
https://github.com/jasonsandlin/xbox-live-samples/tree/js/Samples/CreatorsSDK/Social/UWP/JS/Social
We'll put on our backlog to make an official sample. Thanks
Thanks very much. This looks like it matches some of what I have painfully teased apart by (1) figuring out I could add a reference to the WinRT package (2) struggling with authentication and services config for a while, and (3) translating code from
the C# Unity samples or other samples I found, and (4) looking at available namespaces in the debugger. I feel like I'm spelunking.
I'd still love real JavaScript documentation and services samples at some point, since there's still a lot of confusion for me in some of the details, but I really appreciate you putting this sample together, and it definitely helps!
Thanks.

Related Links

Whitelisted?
XBOX and Hotmail account merging
StatsManager AddLocalUser
Get Microsoft Xbox friends list
Xbox live Api REST
UWP Unity Sample, Missing Assembly
Cannot Update Xbox Live Creators Program Leaderboard
Xbox live c# development (no unity)
StatisticUpdateComplete Documentation or Example
young children developing games
[XboxLiveDevelopment] [UWP] [LIVE]
LeaderBoard Display
Launch date?
[UWP][HTML][XBOX] Leaderboards and eliminating stuttering in Xbox UWP games? (Construct 2)
Where can I find Xbox Api's that don't require a lot of hacks? Why cannot the xbox api's be released publicly?
Has the Xbox Live Creators Program gone live?

Categories

MSDN
Game Development
DevLabs
Smart Device Development
Windows Embedded Standard
Orchard
Bing Maps
Silverlight
Archived Forums E-H
Kinect for Windows SDKs
Microsoft R
Cortana
Visual Studio LightSwi...
Test Tools in Visual S...
Tools for Apache Cordova
Dev Center App
Promote Your App
Application Security f...
Windows Desktop Pro-Au...
Word for Developers
Open XML Format SDK
SharePoint Legacy Vers...
Pricing & Billing
Microsoft Azure Site R...
Azure HDInsight
Azure Search
Azure CDN
Azure Stream Analytics
Azure Logic Apps
Cognitive Services
Azure IoT Hub
Azure Database for MySQL
Windows Communication ...
Team Foundation Server...
The Architect Role
BizTalk Server General
BizTalk Server EDI and...
BizTalk ESB Toolkit
LINQ to SQL
XML, System.Xml, MSXML...
Code Contracts
The Forum of Sho
HealthVault Developer
ISV Open Discussions
Microsoft Robotics - V...
.NET Compact Framework
Visual Studio Smart De...
SQL Server Replication
SQL Server Spatial
SQL Server Migration
Windows Embedded 8.1 I...
SQL Server 2012 PowerP...
Windows Forms Data Con...
Server Virtualization
Windows Live  Spaces: ...
MSDN Magazine
Bing Maps WPF, WP7/8/8...
Bing Maps Web Controls
Open Specifications Qu...
Windows File Sharing P...
Bing Ads API: Development
Microsoft Unified Comm...
Microsoft Unified Comm...
Managed Extensibility ...
Game Development with ...
Project Standard and P...
.NET Framework 4 Appli...
ADO.NET Entity Framewo...
Archived: Software Tes...
Casablanca
Commerce Server 2002 a...
Doloto
General Troubleshootin...
General Windows MultiP...
LINQ to SQL (Pre-Release)
JScript for the .NET F...
Microsoft adCenter: De...
Moderator Posting Only...
Office Development wit...
Office Live Small Busi...
Office Live Small Busi...
Performance Counters f...
Phoenix
Popfly General Discussion
Project Codename:  Jasper
Silverlight (formerly ...
Small Business Applica...
SyncFx - Feedback [Rea...
SQL Server in Azure VMs
SQL Server 2014 In Azu...
SQL Server 2014 Report...
Team Foundation Server...
Tailoring your Windows...
Visual Studio 2008 Exp...
Visual Studio UI Autom...
Web Gadget Development
Web Sandbox - General
Windows Error Reportin...
Windows Live Search: D...
Windows MultiPoint Mou...
Working with Data in W...
XML in Windows (MSXML ...
Microsoft Partner Cent...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile