D7net Mini Sh3LL v1
Current File : //libx32/../share/snapd/../locale/ia/../../doc/info/../libroken18-heimdal/../usbmuxd/../liberror-perl/../grub2-common/../libjpeg8/../php7.4-mysql/../gnupg/../python3-apt/../netplan.io/../wget/../libcurl3-gnutls/../libthai-data/../python3-six/../screen/../maria/../libxaw7/../libmnl0/../netplan/../gdisk/../systemd-sysv/../grep/../udisks2/../libacl1/../libxmlb1/../libperl5.30/../automake/../libmpfr6/../libisl22/../libstemmer0d/../libxcb-shm0/../eatmydata/../less/../libnuma1/../libcurl4/../libmnl0/../cpp/../libjansson4/../xfsprogs/../pollinate/../libsgutils2-2/../at/../snapd/../libefivar1/../udisks2/../libpangocairo-1.0-0/../ubuntu-keyring/../packagekit-tools/../libblockdev2/../socat/../python3-software-properties/../libvorbis0a/../php-psr-container/../python3-six/../gettext/../bolt/../python3-gdbm/../apparmor/../libargon2-1/../python3-launchpadlib/docs/command-line.rst |
********************
Command-line scripts
********************
Launchpad includes one command-line script to make Launchpad
integration easier for third-party libraries that aren't written in
Python.
This file tests the workflow underlying the command-line script as
best it can.
RequestTokenApp
===============
This class is called by the command-line script
launchpad-request-token. It creates a request token on a given
Launchpad installation, and returns a JSON description of the request
token and the available access levels.
>>> try:
... import json
... except ImportError:
... import simplejson as json
>>> from launchpadlib.apps import RequestTokenApp
>>> web_root = "http://launchpad.test:8085/"
>>> consumer_name = "consumer"
>>> token_app = RequestTokenApp(web_root, consumer_name, "context")
>>> token_json = json.loads(token_app.run())
>>> for param in sorted(token_json.keys()):
... print(param)
access_levels
lp.context
oauth_token
oauth_token_consumer
oauth_token_secret
>>> print token_json['lp.context']
context
>>> print token_json['oauth_token_consumer']
consumer
AnonSec - 2021 | Recode By D7net