Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVEXP-556: Add snippets for Numbers API #2

Merged
merged 6 commits into from
Sep 23, 2024

Conversation

asein-sinch
Copy link
Contributor

No description provided.

@Dovchik
Copy link

Dovchik commented Sep 12, 2024

I think makes sense to pull @alex-sberna into the reviewers

type: 'LOCAL',
};

// Method 1: Fetch the data page by page manually

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like providing both methods, but I wonder if it would be better to have two snippets, one that lists page by page manually, and one that uses the iterator, rather than having both in the same file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good suggestion! There are now 2 snippets: list and list-auto

@650elx
Copy link

650elx commented Sep 12, 2024

@asein-sinch WDYT about writing some tests for those snippets? Would be nice to have a certainty that they are actually working.

@asein-sinch
Copy link
Contributor Author

WDYT about writing some tests for those snippets? Would be nice to have a certainty that they are actually working.

@650elx , I have created tickets for ours SDKs:

Copy link

@JPPortier JPPortier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outside of snippets content review, having different file names for each snippet will cause end users to perform manual renaming when it will be time to use them from quickstart repo (part of initial aim for these repos)

i.e.: ideally user should be able to copy/paste a generic snippet.jssources coming from this repo onto https://github.com/sinch/sinch-sdk-node-quickstart/pull/2/files#diff-7a3942f60eabc386bff6328326a40a3d6d7350f10da7252544de50e633693566 directory.
So it will overwrite the snippets.js file onto quickstart repo and just run npm start

A directory structure based like below could reduce work (and typing issue) for end user :

  • numbers
    • available-regions
      • snippets.js
    • callback-configuration
      • get
        • snippets.js
      • update
        • snippets.js

...

Base automatically changed from DEVEXP-555_Initialize_snippets-repository to main September 23, 2024 11:41
@asein-sinch asein-sinch merged commit 4f6a45b into main Sep 23, 2024
1 check passed
@asein-sinch asein-sinch deleted the DEVEXP-556_Add-snippets-for-Numbers-API branch September 23, 2024 12:50
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.

5 participants