Cancel a p3a subscription via the API
Bug #619106 reported by
Michael Nelson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
I can't see any way to retrieve and/or cancel a subscription via the API. bug 530315 was created a while ago, and fixed with Person.
If, on the other hand, the owner of an archive wants to cancel a subscription via the API I can't see how this can currently be done except when first creating the new subscription. (That is, an ArchiveSubscriber is returned when calling Archive.
summary: |
- Cancel a subscription via the API + Cancel a p3a subscription via the API |
Changed in soyuz: | |
status: | New → Triaged |
importance: | Undecided → Low |
tags: | added: software-center |
tags: | added: api p3a ppa |
To post a comment you must log in.
I noticed since that I can do this with:
subs_ uri = lookup_ service_ root(settings. LP_SERVICE) + (
"{version} /~{owner_ name}/+ archive/ {ppa_name} /"
"+subscriptio ns/{subscriber_ name}". format(
version= settings. LP_VERSION, owner_name= owner_name,
ppa_ name=ppa_ name,
subscribe r_name= subscriber_ name)
lp_ subscription = self.launchpad_ service. load(subs_ uri)
{{{
}}}
although of course it would be nice to not have to rely on the uri structure.