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

How to Go to Next page ? How to retrieve next 20 Emails also what about attachments? #2

Open
dhruv850 opened this issue Jul 6, 2020 · 19 comments

Comments

@dhruv850
Copy link

dhruv850 commented Jul 6, 2020

I think that is not issue but I am currently working on that I hope you can help me out there.

@KhalidLam
Copy link
Owner

Yes i would love to help you, this was just a side-project to learn React, but i'm planing to add more features in the future

You can send another messages.list request to get the next 20 emails but you should add pageToken to request parameters
{167B2DAB-3CF1-4D57-B381-1D8FE7250241} png

I've no idea how to add attachments right now 😁

@dhruv850
Copy link
Author

dhruv850 commented Jul 7, 2020 via email

@KhalidLam
Copy link
Owner

Okay I will submit new commit with function to get next page emails just to show you how, but it's just a temporary code😃

@dhruv850
Copy link
Author

dhruv850 commented Jul 7, 2020 via email

@KhalidLam
Copy link
Owner

Its already done 😁 check commits and let me know if you need help

@dhruv850
Copy link
Author

dhruv850 commented Jul 7, 2020 via email

@dhruv850
Copy link
Author

dhruv850 commented Jul 7, 2020 via email

@KhalidLam
Copy link
Owner

No, I didn't display the new emails, the function only send a request to get new emails and display it in console, I'm planning to add an Infinite scroll if you want to display the new emails too you should uncomment this line in getNextPageMessages method
// setMessages((messages) => [...messages, response.result]);
I'll fix this issue in the next few days don't worry 👌

@dhruv850
Copy link
Author

dhruv850 commented Jul 7, 2020 via email

@dhruv850
Copy link
Author

dhruv850 commented Jul 7, 2020

Have you got any success ?

@dhruv850
Copy link
Author

dhruv850 commented Jul 8, 2020 via email

@dhruv850
Copy link
Author

dhruv850 commented Jul 8, 2020 via email

@KhalidLam
Copy link
Owner

I'm working on other projects at the time so I cant implement it right now 😢

@dhruv850
Copy link
Author

dhruv850 commented Jul 9, 2020 via email

@dhruv850
Copy link
Author

dhruv850 commented Jul 11, 2020 via email

@KhalidLam
Copy link
Owner

Nice work, I'm working now on the infinite scrolling
I'll let you know when it's done

@dhruv850
Copy link
Author

dhruv850 commented Jul 19, 2020 via email

@KhalidLam
Copy link
Owner

Did you push the code on your Github account?
I want to see the code, or you can make a pull request if you want

@dhruv850
Copy link
Author

dhruv850 commented Jul 19, 2020 via email

@KhalidLam KhalidLam reopened this Aug 2, 2020
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

No branches or pull requests

2 participants