Documentation updates#8
Conversation
3ad3696 to
3216716
Compare
| <!-- End IDE Support [idesupport] --> | ||
|
|
||
| <!-- Start SDK Example Usage [usage] --> | ||
| <!-- No SDK Example Usage [usage] --> |
There was a problem hiding this comment.
This is how we indicate to speakeasy not to overwrite a section in the README with generated docs.
There was a problem hiding this comment.
I think we need to remove the <!-- Start [tag] --> altogether, right?
There was a problem hiding this comment.
ahh yeah you're right, looks like I misread the instructions. Thanks!
| with Gusto( | ||
| company_access_auth=os.getenv("GUSTO_COMPANY_ACCESS_AUTH", ""), | ||
| ) as gusto: | ||
| auth_token = os.getenv("GUSTO_COMPANY_ACCESS_AUTH", None) |
There was a problem hiding this comment.
Some of @satanas's feedback – shorter lines, more validation, and use None over ""
| <!-- End IDE Support [idesupport] --> | ||
|
|
||
| <!-- Start SDK Example Usage [usage] --> | ||
| <!-- No SDK Example Usage [usage] --> |
There was a problem hiding this comment.
I think we need to remove the <!-- Start [tag] --> altogether, right?
|
|
||
| <!-- Start SDK Example Usage [usage] --> | ||
| <!-- No SDK Example Usage [usage] --> | ||
| ## SDK Example Usage |
There was a problem hiding this comment.
nit: Since we're maintaining this section can we rename this title to just Example Usage? I'd like us to drop the usage of "SDK" whenever possible to avoid confusions.
| company. Then use the returned company access token for further requests. We'll do this in the following steps. | ||
| 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) | ||
| 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] | ||
| 3. [Create a Company Location]() |
There was a problem hiding this comment.
oops, good catch
| new partner managed company. In this section we will illustrate using a system access token to create a partner managed | ||
| company. Then use the returned company access token for further requests. We'll do this in the following steps. | ||
| 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) | ||
| 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] |
There was a problem hiding this comment.
Link for accept looks weird. Did you mean:
[Accept](https://github.com/Gusto/gusto-python-client/blob/main/gusto_embedded/docs/sdks/companies/README.md#accept_terms_of_service)] Terms of Service
| <!-- End SDK Example Usage [usage] --> | ||
|
|
||
| ### Common workflows | ||
| A common workflow, as documented [here](https://docs.gusto.com/embedded-payroll/docs/onboard-a-company), is to create a |
There was a problem hiding this comment.
super-nit: I'd give more context about where the link is pointing to. E.g:
as documented [in our docs](https://docs.gusto.com/embedded-payroll/docs/onboard-a-company)
80825ae to
8a2bb4e
Compare
Following Speakeasy's guide for customizing docs, updates the documentation to use more conventional python patterns, and adds some more useful code snippets. Adds a more practical usage example based on a real series of requests that a partner would make when following our company onboarding guide.