itc-api-docs icon indicating copy to clipboard operation
itc-api-docs copied to clipboard

Recent Update of login API

Open Marindrew opened this issue 10 years ago • 3 comments

So, Apple updates their APIs

Now the Login URL is https://idmsa.apple.com/appleauth/auth/signin with appliation/json POST request with the following parameters: {"accountName":"[email protected]","password":"password","rememberMe":true}

it will respond with "X-SESS", "site" and "aa" cookie. After this point I am stuck, as the website somehow gets "wosid" cookie, couldn't track it so far.

Any suggestions?

Marindrew avatar Nov 13 '15 10:11 Marindrew

Yes, it's already been implemented on spaceship: https://github.com/fastlane/spaceship/commit/d55a43ae74777d52ec45d39933ec07dd89d6f1a7

KrauseFx avatar Nov 13 '15 14:11 KrauseFx

@Marindrew did you get any further with this? I looked at the code on spaceship but it wasn't obvious how to get it working. I am getting back cookies from that URL but not sure what's need to auth correctly.

We run our scripts with Python, hence why Spaceship isn't ideal for the use case.

TiernanKennedy avatar Dec 21 '15 23:12 TiernanKennedy

@TiernanKennedy Hi TiernanKennedy, can you help me ,I want to know how to use the api with Python, as konw little about Ruby ,I felt very confuse.I hope you can give me a simple example to use the api, Thanks very very much.

ryzn0518 avatar Oct 15 '16 10:10 ryzn0518