mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +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.
|
The `bcfapi` module lets you interact with the BCF-API standard.
|
||||||
|
|
||||||
```python
|
```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")
|
foundation_client = FoundationClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", "OPENCDE_BASEURL")
|
||||||
auth_methods = foundation_client.get_auth_methods()
|
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",
|
"oauth2_token_url": "http://127.0.0.1:5000/oauth/token",
|
||||||
"supported_oauth2_flows": ["authorization_code"],
|
"supported_oauth2_flows": ["authorization_code"],
|
||||||
}
|
}
|
||||||
response = website_obj.response_class(
|
response = app.response_class(
|
||||||
data=json.dumps(data), status=200, mimetype="application/json"
|
response=json.dumps(data), status=200, mimetype="application/json"
|
||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@@ -161,8 +161,8 @@ def foundation_versions():
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
response = website_obj.response_class(
|
response = app.response_class(
|
||||||
data=json.dumps(Body), status=200, mimetype="application/json"
|
response=json.dumps(Body), status=200, mimetype="application/json"
|
||||||
)
|
)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user