| 1 | package Imgur::API::Endpoint::Conversation; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use Mouse; | ||
| 5 | extends 'Imgur::API::Endpoint'; | ||
| 6 | |||
| 7 | sub list { | ||
| 8 | my ($this,%p) = @_; | ||
| 9 | |||
| 10 | return $this->dispatcher->request( | ||
| 11 | $this->path("3/conversations",[],[],\%p), | ||
| 12 | 'get', | ||
| 13 | \%p | ||
| 14 | ); | ||
| 15 | } | ||
| 16 | |||
| 17 | sub get { | ||
| 18 | my ($this,%p) = @_; | ||
| 19 | |||
| 20 | return $this->dispatcher->request( | ||
| 21 | $this->path("3/conversations/%s",['conversation'],['page','offset'],\%p), | ||
| 22 | 'get', | ||
| 23 | \%p | ||
| 24 | ); | ||
| 25 | } | ||
| 26 | |||
| 27 | |||
| 28 | |||
| 29 | 1; | ||
| 30 | __PACKAGE__->meta->make_immutable; | ||
| 31 |