Beer search: your_count missing.

22 views
Skip to first unread message

stu

unread,
May 6, 2012, 11:56:16 PM5/6/12
to untappd-api-d...@googlegroups.com
Hi,

In the API Explorer it's returning "your_count". In the actual API return via an http call, the "your_count" is completely missing. Could you add that in please?

Stu

Nicholas Guarracino

unread,
May 7, 2012, 11:38:30 AM5/7/12
to untappd-api-d...@googlegroups.com
Are you talking about the beer_search method? I am getting your_count
in the results from that.

Nick

stu

unread,
May 8, 2012, 9:26:53 AM5/8/12
to untappd-api-d...@googlegroups.com
Exactly.

Here is the return I get from beer_search:

{code}
{
'next_page' => 'http://api.untappd.com/v3/beer_search?q=beer&offset=25',
'search_term' => 'beer',
'results' => [
{
'country_name' => 'United States',
'brewery_stamp' => 'https://untappd.s3.amazonaws.com/site/brewery_logos/brewery-SamuelAdams.jpg',
'beer_stamp' => 'https://untappd.s3.amazonaws.com/site/beer_logos/beer-saBostonLager.jpg',
'beer_id' => '3914',
'brewery_name' => 'Boston Beer Company',
'beer_name' => 'Samuel Adams Boston Lager',
'brewery_id' => '157',
'total_count' => '31958'
},
{
'country_name' => 'United States',
'brewery_stamp' => 'https://untappd.s3.amazonaws.com/site/brewery_logos/brewery-SamuelAdams.jpg',
'beer_stamp' => 'https://untappd.s3.amazonaws.com/site/beer_logos/beer-bostonBrewingWinterLager.jpg',
'beer_id' => '3919',
'brewery_name' => 'Boston Beer Company',
'beer_name' => 'Samuel Adams Winter Lager',
'brewery_id' => '157',
'total_count' => '21614'
},
[...]
{code}

Stu

On Monday, 7 May 2012 08:38:30 UTC-7, Nicholas Guarracino wrote:

stu

unread,
May 8, 2012, 9:27:59 AM5/8/12
to untappd-api-d...@googlegroups.com
And ignore the {code} parts, I was hoping that would format the text a little better. :)


On Monday, 7 May 2012 08:38:30 UTC-7, Nicholas Guarracino wrote:

Greg Avola

unread,
May 8, 2012, 9:32:39 AM5/8/12
to Untappd API Developer Group
The your_count only shows if you are authenticated. Are you doing
that?

Thanks,
Greg

stu

unread,
May 8, 2012, 9:34:27 AM5/8/12
to untappd-api-d...@googlegroups.com
lol. I just realised that... just as you emailed... thanks though! I wasn't authenticated. It's cunning that you can use the methods in both manners. :)

Cheers,
Stu
Reply all
Reply to author
Forward
0 new messages