by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 25 2017 01:35
    DavidGarciaCat commented #270
  • Jan 24 2017 21:37
    coldlamper opened #270
  • Jan 20 2017 22:12
    pirogoeth synchronize #264
  • Jan 20 2017 22:12

    pirogoeth on suppressions

    Implement suppressions API (#25… (compare)

  • Jan 20 2017 22:11
    pirogoeth commented #264
  • Jan 20 2017 22:09
    pirogoeth commented #264
  • Jan 20 2017 22:09
    pirogoeth unlabeled #264
  • Jan 20 2017 22:09
    pirogoeth labeled #264
  • Jan 20 2017 22:09
    pirogoeth labeled #264
  • Jan 20 2017 22:08
    pirogoeth opened #269
  • Jan 20 2017 22:08
    pirogoeth labeled #269
  • Jan 20 2017 22:08

    pirogoeth on pagination-typo

    Fix typo in PaginationResponse:… (compare)

  • Jan 20 2017 21:45

    pirogoeth on analysis-8QP51Z

    (compare)

  • Jan 20 2017 21:45
    pirogoeth synchronize #264
  • Jan 20 2017 21:45

    pirogoeth on suppressions

    Apply fixes from StyleCI (#268) (compare)

  • Jan 20 2017 21:45
    pirogoeth closed #268
  • Jan 20 2017 21:45
    pirogoeth opened #268
  • Jan 20 2017 21:45

    pirogoeth on analysis-8QP51Z

    Apply fixes from StyleCI (compare)

  • Jan 20 2017 21:44
    pirogoeth synchronize #264
  • Jan 20 2017 21:44

    pirogoeth on suppressions

    Implement suppressions API (#25… (compare)

sugerp
@sugerp
i have question why my domain dns has been verified but is aways disable
can anybody help me
Tobias Nyholm
@Nyholm
You should ask the support. We have no idea in this forum.
sugerp
@sugerp
ok
Anshul Gupta
@heartofrevel
hi guys
Anshul Gupta
@heartofrevel
Hi I am using infinitfree hosting
they dont provide ssh access
how can i install the library without it
if i just copy the files, will it work
Tobias Nyholm
@Nyholm
You have to use composer to use our latest version. You should consider using a modern alternative.
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 24 hours and 0 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
Anshul Gupta
@heartofrevel
@Nyholm can i use post request in php to access the apu
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 47 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
Anshul Gupta
@heartofrevel
*api
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 47 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
Tobias Nyholm
@Nyholm
Sure.
Sameroom
@sameroom-bot
<Sameroom> Whoops! You've exceeded your daily message limit on this Sameroom account (it will reset in 23 hours and 39 minutes). If you have too many Tubes for your budget, pause or delete some Tubes on the Manage page. If you dont have a subscription, visit pricing to upgrade to unlimited messaging.
David Garcia
@DavidGarciaCat
hey @Nyholm I can see you're going to talk this September on Symfony Live London! I hope to meet you there!
Tobias Nyholm
@Nyholm
Hey. Yes I am.
That would be great to finally meet up
David Garcia
@DavidGarciaCat
sure, let's see if we can talk 5 minutes :)
Tobias Nyholm
@Nyholm
Naturally we will.
Tobias Nyholm
@Nyholm
@pirogoeth could you take care of #343 and repair the hook in style ci?
Sean Johnson
@pirogoeth
@Nyholm I fixed the style ci hook, permissions on the repo got destroyed
Tobias Nyholm
@Nyholm
Thanks
Carlos Longarela
@CarlosLongarela
Hi everyone, my name is Carlos Longarela, WordPress plugin developer, now working in a Mailgun WP plugin and I've some doubts...
I want to use API v3 and by default use v2, I can change it with $this->mailgun_obj->setApiVersion( 'v3' );
Carlos Longarela
@CarlosLongarela
What are the new methods? must I use $logs = $this->mailgun_obj->get( CL_WP_MM_DOMAIN . '/events', $query );or $logs = $this->mailgun_obj->events()->get( CL_WP_MM_DOMAIN ); ? and what is the difference? Thanks in advance
Carlos Longarela
@CarlosLongarela
And sorry for a lot of questions, but @Nyholm can you guide me how to iterate with results? before with get I used foreach with object, but now?
Tobias Nyholm
@Nyholm
Hey Carlos. Have a look at the documentation in the php client repo.
There are some deprecated functions in that repo, you should try to avoid them.
Ping @CarlosLongarela
Carlos Longarela
@CarlosLongarela
Ok, thanks @Nyholm then I must use that and not https://documentation.mailgun.com/en/latest/api_reference.html ?
Tobias Nyholm
@Nyholm
You can use whatever. But I believe it is easier if you stay with the docs I linked.
Carlos Longarela
@CarlosLongarela
Ok, perfect, then I'll use https://github.com/mailgun/mailgun-php/blob/master/doc/index.md I'll adapt all my plugin code. But one dude, if I use $logs = $this->mailgun_obj->events()->get( CL_WP_MM_DOMAIN ); whats is the best approach for iterate with $logs results ?
Carlos Longarela
@CarlosLongarela
Sorry but I don't see documentation how to use new methods, only the methods, can you @Nyholm guide me about this method? (prior method was a object and I used a foreach)
Carlos Longarela
@CarlosLongarela
Thanks by guide me, now I know how to interact with results:
<?php
$events = $this->mailgun_obj->events()->get( CL_WP_MM_DOMAIN );

$n_events = count( $events->getItems() );

foreach ( $events->getItems() as $item ) {
    echo '<p>' . $item->getId() . '</p>';
    echo '<p>' . $item->getTimestamp() . '</p>';
    echo '<p>' . $item->getEvent() . '</p>';
    echo '<p>' . $item->getRecipient() . '</p>';
}
Thanks @Nyholm by your response. Kindly regards.
Carlos Longarela
@CarlosLongarela

Hi @Nyholm is there any method for to know total items (no response total item that I've with count) for make pagination?, I've methods:

<?php
$nextPage = $this->mailgun_obj->events()->nextPage( $res );
$previousPage = $this->mailgun_obj->events()->previousPage( $res );
$firstPage = $this->mailgun_obj->events()->firstPage( $res );
$lastPage = $this->mailgun_obj->events()->lastPage( $res );

but I never know if exists a previous or next page because I haven't total count.

David Garcia
@DavidGarciaCat
Hey @CarlosLongarela based on the API docs here https://documentation.mailgun.com/en/latest/api-events.html#examples Mailgun does not provide the total of pages:
  "paging": {
    "next":
        "https://api.mailgun.net/v3/samples.mailgun.org/events/W3siY...",
    "previous":
        "https://api.mailgun.net/v3/samples.mailgun.org/events/Lkawm..."
  }
Carlos Longarela
@CarlosLongarela
Thanks @DavidGarciaCat yes I see it, then there is no option for make a good pagination structure?
David Garcia
@DavidGarciaCat
Unfortunately that's not the case, based on the current stage... We cannot run [unknown] number of API calls just do "determinate" the number of pages, it could be a bad choice, specially for those projects that manage thousands of users and sendings...
You can always send a new ticket / contact form to Mailgun, suggesting an API improvement, but that's all I can tell you until they API changes
Carlos Longarela
@CarlosLongarela
Ok, thanks a lot by your help @DavidGarciaCat
David Garcia
@DavidGarciaCat
No problem @CarlosLongarela
By the way, you might want to know that I am currently working on a new update for the SDK, in order to provide an up-to-date way to validate email addresses. Keep an eye on upcoming releases!
Carlos Longarela
@CarlosLongarela
Ok, thanks @DavidGarciaCat that sound fantastic :smile:
David Garcia
@DavidGarciaCat
@/all Merry Christmas guys
Florian Krämer
@burzum
So how can iterate over a result set until the last result is reached? I mean, how do I detect that I've reached the last page? There is nothing like isLastPage() has hasNextPage().
We're using version 2.8.x