Comments (11)
Figured it out (via view-source) - Your request address is outdated. Use /WebObjects/iTunesConnect.woa/wo/7.0.1.13.3.15.2.1.1.3.1.1
from itc-api-docs.
Uh, that's not good. I'll have to find a way to fetch the latest URL for authentication. Do you have an idea how to solve this?
from itc-api-docs.
No clue, and probably apple doesn't want you to know how ;-) But maybe just add a note in the docs to check the iTunesConnect login page source for the latest url.
from itc-api-docs.
I'm trying to figure out a way to deal with this right now too... I think for you, a possible solution is web scraping + github's api to automatically update the docs with any changes to the endpoint
from itc-api-docs.
@keithblaha I like the idea of automatically updating the login URL on GitHub. Web Scraping of this URL is super simple and probably just one line of Ruby.
I'll temporary update the URL for now and will work on a better long term solution.
from itc-api-docs.
The login url, which you use to send POST requests to is (I assume) different for every session and should be different for every user. In order to get this address, you need to parse server page form, indeed: https://github.com/kovpas/itc.cli/blob/archive/itc/core/server.py#L72
from itc-api-docs.
@kovpas It shouldn't be different for every user. I used the same login URL for about a week and it working fine.
from itc-api-docs.
@KrauseFx might be a session with a certain expiration period then, so URL is invalid after this period passed.
from itc-api-docs.
@KrauseFx Just a shot in the blue: Afaik the cookies are cross service, so you might be able to authenticate with for example https://idmsa.apple.com/IDMSWebAuth/authenticate
and use the cookie from there.
I didn't try this though.
from itc-api-docs.
@kommen That's a good idea, I actually have the code from the spaceship
already:
URL_AUTHENTICATE = "https://idmsa.apple.com/IDMSWebAuth/authenticate" # Mixed - Dev Portal
login_request = Excon.post(URL_AUTHENTICATE,
body: URI.encode_www_form(
appleId: user,
accountPassword: password,
appIdKey: api_key
),
headers: {
"Content-Type" => "application/x-www-form-urlencoded"
}
)
The problem here is the api_key
. It is static and built in into Xcode, but we're probably not allowed to use it. I found a nice workaround for spaceship
though, which involves some Ruby scripting.
from itc-api-docs.
I added new information about the login URL: https://github.com/fastlane/itc-api-docs#login
Not 100% perfect yet, but you now have a very simple script that prints out the current URL 👍
from itc-api-docs.
Related Issues (20)
- Cancel "Waiting for Review" HOT 8
- App json urls now deprecated HOT 3
- Recent Update of login API HOT 3
- [Request] postman collection
- Getting 401 Unauthorised for all except Login HOT 1
- how to use the api and get our app scores? HOT 3
- itc api HOT 7
- Paw example file is out-of-date (or corrupt?) HOT 2
- iTunes has changed the login and stats apis HOT 1
- IAP Management HOT 1
- the pre-filled PAW file could not be opened. HOT 2
- Paw file is corrupted HOT 1
- Can't open paw file HOT 1
- when official documentation of the iTunes Connect JSON API will release ?? HOT 1
- App Rejection API's? HOT 3
- How can I get iap or price information by using this api? HOT 1
- Save uploaded build train HOT 3
- "Crossfire-response-badrequest-title": "The URL is invalid." HOT 5
- HTTP Error 403: Forbidden HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itc-api-docs.