The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::Async::Webservice::UPS::Response::QV - response for qv_events

VERSION

version 1.1.4

DESCRIPTION

Instances of this class are returned (in the Future) by calls to "qv_events" in Net::Async::Webservice::UPS.

ATTRIBUTES

subscriber_id

The UPS Quantum View subscriber id. It's the same as the UPS user id.

events

Array ref of Net::Async::Webservice::UPS::Response::QV::Event

bookmark

String used to paginate long results. Use it like this:

  use feature 'current_sub';

  $ups->qv_events($args)->then(sub {
   my ($response) = @_;
   do_something_with($response);
   if ($response->bookmark) {
     $args->{bookmark} = $response->bookmark;
     return $ups->qv_events($args)->then(__SUB__);
   }
   else {
    return Future->done()
   }
  });

So:

  • a response without a bookmark is the last one

  • if there is a bookmark, a new request must be performed with the same subscriptions, plus the bookmark

(yes, the example requires Perl 5.16, but that's just to make it compact)

AUTHORS

  • Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>

  • Sherzod B. Ruzmetov <sherzodr@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.