Ubuntu Pastebin

Paste from elopio at Tue, 14 Nov 2017 15:23:06 +0000

Download as text
1
2
3
4
5
6
7
8
import requests_oauthlib
import ssoclient.v2


client = ssoclient.v2.V2ApiClient('https://login.ubuntu.com/api/v2')
oauth = client.login(email=email, password=password, token_name='snappy-m-o autopkgtest')
autopkgtest =  OAuth1Session(oauth['consumer_key'], client_secret=oauth['consumer_secret'], resource_owner_key=oauth['token_key'], resource_owner_secret=oauth['token_secret'])
response = autopkgtest.get('https://autopkgtest.ubuntu.com/request.cgi?release=xenial&arch=armhf&package=snapcraft&ppa=snappy-dev/snapcraft-daily&trigger=snapcraft/2.34-201711130017-6aa135f~ubuntu16.04.1')
Download as text