class DiscourseAPI:
"""
Retrieve information from a Discourse installation
through its API
"""
def __init__(self, base_url, session, api_key=None, api_username=None):
"""
@param base_url: The Discourse URL (e.g. https://discourse.example.com)
"""
self.base_url = base_url.rstrip("/")
self.session = session
if api_key and api_username:
self.session.headers = {
"Api-Key": api_key,
"Api-Username": api_username,
}
name: super-cool-app
version: "1.0"
summary: Super Cool App
description: |
Super Cool App that does everything! […]
confinement: strict
base: core18
parts:
super-cool-app:
plugin: flutter
source: https://github.com/kenvandine/super-cool-app.git
flutter-target: lib/main.dart
apps:
super-cool-app:
command: super_cool_app
extensions: [flutter-dev]