mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Minor fix
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user