LP API me.getArchiveSubscriptionURLs() does not return all my private ppa subscriptions
I'm subscribed to a lot of private ppas, but the API only returns a small subset, e.g.:
$ lp-shell
Connected to LP service "production" with API version "devel":
Note: LP can be accessed through the "lp" object.
In [1]: import re
In [2]: for u in lp.me.getArchiv
...: print(re.
...:
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
https:/
In [3]:
The web page for my subscriptions lists way more:
https:/
Is this a LP bug? Or am I using the API wrong?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Colin Watson
- Solved:
- 2021-03-08
- Last query:
- 2021-03-08
- Last reply:
- 2021-03-05
Ioana Lasc (ilasc) said : | #1 |
Hi Dan
It is expected that the the API endpoint you're using (getArchiveSubs
Dan Streetman (ddstreet) said : | #2 |
> the +archivesubscri
I think I see the problem; while I already have a subscription to some private ppas, the password doesn't show up in my SubscriptionURLs() list until I click on the 'View' link for the private PPA in my +archivesubscri
I assume this is an intentional design, for no password to be created until someone clicks on the 'View' link from a browser, and then the pw is created and added to their subscriptionurls list?
|
#3 |
getArchiveSubsc
Dan's latest comment is correct: a private PPA owner can grant you access to their PPA if they want, but in order to have an active token you need to activate it via the "View" link. +archivesubscri
Dan Streetman (ddstreet) said : | #4 |
Thanks Colin Watson, that solved my question.