Skip to content

Comments

Update code samples#62

Merged
mapitman merged 1 commit intogettyimages:mainfrom
mapitman:update-code-samples
Mar 28, 2025
Merged

Update code samples#62
mapitman merged 1 commit intogettyimages:mainfrom
mapitman:update-code-samples

Conversation

@mapitman
Copy link
Member

  • Use await in code samples
  • Use import instead of require
  • Add notes about token caching and ensuring ES Modules are enabled in the developer's project

Closes #61

@mapitman mapitman self-assigned this Mar 28, 2025
@mapitman mapitman requested a review from ChrisSimmons March 28, 2025 16:26
@coveralls
Copy link

coveralls commented Mar 28, 2025

Coverage Status

coverage: 97.864%. remained the same
when pulling 7282b2f on mapitman:update-code-samples
into c2cec24 on gettyimages:main.

@mapitman mapitman changed the title Update code smaples Update code samples Mar 28, 2025
- Use `await` in code samples
- Use `import` instead of `require`
- Add notes about token caching and ensuring ES Modules are enabled in the developer's project

Closes gettyimages#61
@mapitman mapitman force-pushed the update-code-samples branch from 0681f86 to 7282b2f Compare March 28, 2025 16:29
@mapitman mapitman merged commit 0a37bbd into gettyimages:main Mar 28, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure cached token is being used when it has not expired

3 participants