Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: is my api wrapper abstraction ok (is it perlish?)

by gideondsouza (Pilgrim)
on Jan 20, 2013 at 05:24 UTC ( #1014255=note: print w/replies, xml ) Need Help??


in reply to Re: is my api wrapper abstraction ok (is it perlish?)
in thread is my api wrapper abstraction ok (is it perlish?)

Thanks for your reply. I see. Yours is an interesting abstraction.

Also, there are urls like this: "/answers/{ids}/comments" where it returns comments on the answers returned by ids. So then I'd have to introduce another parameter or type for it.

  • Comment on Re^2: is my api wrapper abstraction ok (is it perlish?)

Replies are listed 'Best First'.
Re^3: is my api wrapper abstraction ok (is it perlish?)
by Arunbear (Parson) on Jan 20, 2013 at 12:30 UTC
    Also, there are urls like this: "/answers/{ids}/comments" ...
    But isn't that the same as the first example above that returns
    http://api.stackexchange.com/answers/123;134;145/comments?sort=votes;o +rder=desc
    minus the query parameters? The code example I gave already handles that case.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014255]
help
Chatterbox?
Discipulus loose the tozzetto party!
[shmem]: .oO( addition of cookies for addiction to cookies )
[Lady_Aleena]: Other than my typos shmem. 8)
[shmem]: otherwise fine
[Discipulus]: tozzetti & vinsanto
[Lady_Aleena]: The whole line is push @line, ref($list_addition ) ? @$list_addition : $list_addition if $list_addition;
[Lady_Aleena]: And I forgot to do the array check, I'm such a doofus today.
[Lady_Aleena]: push @line, ref($list_addition ) eq 'ARRAY' ? @$list_addition : $list_addition if $list_addition; #trying again
[shmem]: Discipulus: yummy. I like those. Didn't have them for some time now, forgot the name. Should go get some...
[shmem]: Lasy_Aleena: correct, although for clarity I'd use an if() block, not a statement modifier

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-04-27 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (504 votes). Check out past polls.