简体   繁体   中英

Send User ID from Windows Phone 8.1 App to Azure Mobile Service

I have a Windows Phone 8.1 App using C# and XAML where I am authenticating the user via Twitter using Azure Mobile Service. Now I want to send the User ID of user which Twitter Returns to my App to another Azure Mobile Service which will generate all tweets of that User only. The Azure mobile Service has backend in JavaScript. Right Now my script generates my tweets because I have hard-coded my Details in it. I want to make it Dynamic so it works on any ID it receives. How do I send this ID from my App to Azure mobile Service and How do I receive it there and use it in my script?

A video/site tutorial containing solution will be appreciated.

You might find the following tutorials helpful:

https://azure.microsoft.com/en-us/documentation/articles/mobile-services-dotnet-backend-windows-store-dotnet-get-started/

https://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-store-dotnet-call-custom-api/

The ID can simply be sent as the body of a POST request to a table or custom API, and then this would be available to the request object in your scripts.

It is also worth pointing out that the ID of the currently logged-in user is available to any script at request.user.userId .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM