-
Notifications
You must be signed in to change notification settings - Fork 134
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
Page token missing #27
Comments
@shanwazfarooqe you know what? Looking at the code I think I totally forgot about that. I'm making a PR right now. Sorry!!! |
@shanwazfarooqe it should be something like:
You can access the token via |
@shanwazfarooqe please check PR #28 |
I am getting error when using take() method. Call to undefined method Dacastro4\LaravelGmail\Services\Message::take() |
Hey, @shanwazfarooqe can you send me the code that you're using? |
Ok
I will send
…On Mon, Sep 17, 2018, 6:31 AM Daniel Castro ***@***.***> wrote:
Hey, @shanwazfarooqe <https://github.com/shanwazfarooqe> can you send me
the code that you're using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoVZvtndXRonl-0ttJIOi_iH2uqP5nDaks5ubvRrgaJpZM4WYVdj>
.
|
`<?php namespace App\Http\Controllers; use Dacastro4\LaravelGmail\Facade\LaravelGmail; class GmailController extends Controller
} |
@shanwazfarooqe you told me that you had an error with |
take() method works but i still couldnt get page token. So i used it directly to get pageToken(). |
@shanwazfarooqe did you already try what I said in this message? |
Yes I tried with take method and I couldn't get nextPagetoken for
pagination. So I used it directly and can aceess nextPageToken
…On Mon, Oct 15, 2018, 5:57 AM Daniel Castro ***@***.***> wrote:
@shanwazfarooqe <https://github.com/shanwazfarooqe> it should be
something like:
$messages = LaravelGmail::message();
$messages->take(3)->all(); //gets first 3
$messages->next(); //get next 3
You can access the token via $messages->pageToken
@shanwazfarooqe <https://github.com/shanwazfarooqe> did you already try
what I said in this message?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoVZvmHrqxp4wpOnAkgdi4QcqVF2accHks5uk9aBgaJpZM4WYVdj>
.
|
I'm really sorry @shanwazfarooqe, I've been busy. Did you figure it out? if you haven't, let me know so I can keep the issue open and help you. |
Awesome! $messages['pageToken'] = $this->pageToken; I tried and it's working fine. So, @dacastro4 can you please update in package. |
Page token is missing when using limit data.
LaravelGmail::message()->limit(10)->in( $box = 'inbox' )->preload()->all();
How can i access pagetoken.
The text was updated successfully, but these errors were encountered: