You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("GUSTO_COMPANY_ACCESS_AUTH is not set")
142
142
143
-
res =await gusto.introspection.get_info_async()
143
+
asyncwith Gusto(company_access_auth=auth_token) as gusto:
144
+
res = gusto.introspection.get_info_async()
144
145
145
-
# Handle response
146
-
print(res)
146
+
# Handle response
147
+
print(res)
147
148
148
149
asyncio.run(main())
149
150
```
150
-
<!-- End SDK Example Usage [usage] -->
151
+
152
+
### Common workflows
153
+
A common workflow, as documented [in our docs](https://docs.gusto.com/embedded-payroll/docs/onboard-a-company), is to create a
154
+
new partner managed company. In this section we will illustrate using a system access token to create a partner managed
155
+
company. Then we will use the returned company access token for subsequent requests. We'll do this in the following steps.
156
+
1.[Create a Partner Managed Company](https://github.com/Gusto/gusto-python-client/blob/main/gusto_embedded/docs/sdks/companies/README.md#create_partner_managed)
157
+
2.[View](https://flows.gusto.com/terms) and [Accept](https://github.com/Gusto/gusto-python-client/blob/main/gusto_embedded/docs/sdks/companies/README.md#accept_terms_of_service) Terms of Service
158
+
3.[Create a Company Location](https://docs.gusto.com/embedded-payroll/docs/onboard-a-company#3-create-a-company-location)
159
+
160
+
```python
161
+
# Synchronous Example
162
+
from gusto_embedded import Gusto, PostV1PartnerManagedCompaniesSecurity
You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
0 commit comments