l.s.o.i.IOAuthConsumerSet(Interface) : interface documentation

Part of lp.services.oauth.interfaces View In Hierarchy

The set of OAuth consumers.
Method new Return the newly created consumer.
Method getByKey Return the consumer with the given key.
def new(key, secret=''):
Return the newly created consumer.

You must make sure the given key is not already in use by another consumer before trying to create a new one.

The secret defaults to an empty string because most consumers will be open source desktop applications for which it wouldn't be actually secret.

ParameterskeyThe unique key which will be associated with the new consumer.
secretA secret which should be used by the consumer to sign its requests.
def getByKey(key):
Return the consumer with the given key.

If there's no consumer with the given key, return None.

ParameterskeyThe unique key associated with a consumer.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.