Minor fix

This commit is contained in:
Dion Moult
2021-08-06 16:44:47 +10:00
parent 62c5efe591
commit 07bf60819a
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ bcfxml.edit_topic(topic)
The `bcfapi` module lets you interact with the BCF-API standard.
```python
from bcf.v3.bcfapi import AuthClient, BcfClient
from bcf.v3.bcfapi import FoundationClient, BcfClient
foundation_client = FoundationClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", "OPENCDE_BASEURL")
auth_methods = foundation_client.get_auth_methods()
+4 -4
View File
@@ -132,8 +132,8 @@ def foundation_auth():
"oauth2_token_url": "http://127.0.0.1:5000/oauth/token",
"supported_oauth2_flows": ["authorization_code"],
}
response = website_obj.response_class(
data=json.dumps(data), status=200, mimetype="application/json"
response = app.response_class(
response=json.dumps(data), status=200, mimetype="application/json"
)
return response
@@ -161,8 +161,8 @@ def foundation_versions():
},
]
}
response = website_obj.response_class(
data=json.dumps(Body), status=200, mimetype="application/json"
response = app.response_class(
response=json.dumps(Body), status=200, mimetype="application/json"
)
return response