BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-13-2011, 01:32 AM   #1
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default FourSquare API

Please Login to Remove!

Hello,

I have to use foursquare location api in blackberry

any one know how can i get location api.. i search a lot but cant find location api


Thanks
Offline  
Old 07-13-2011, 09:26 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: FourSquare API

Can you please try to ask a more coherent question?
Offline  
Old 07-13-2011, 10:20 AM   #3
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

i need to use four square api in my app for two reasons:

1) user can find location

2) integration of app with facebook

www.foursquare.com
Offline  
Old 07-13-2011, 05:09 PM   #4
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default Re: FourSquare API

OK, so what is your question?
Offline  
Old 07-13-2011, 06:45 PM   #5
whatMemory
New Member
 
Join Date: Jul 2011
Location: Largo
Model: 7100t
PIN: N/A
Carrier: us cellular
Posts: 8
Default Re: FourSquare API

Are you talking about get the get a users location part of foursquares api?

developer.foursquare.com/venues/


If so you are looking for the venues section of the api.

If you are asking how to use Curl or JSON your probably better off hiring someone to write your script
Offline  
Old 07-13-2011, 11:40 PM   #6
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

yes i am looking for this api

but this thng is totally new for me . what i understood from foursquare is that i will just invoke location api as we do to invoke any http url using httpconnection class which returns xml but if this is what i hv to do then how user will search location . searching location will depend on user input?


can you tell me which api wll be used for facebook integration?
Offline  
Old 07-13-2011, 11:57 PM   #7
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

i also want to integratre facebook and location search using foursquare api in my blackberry.. i dont know much abt foursquare,was searching on ggogle and find this link did you find answers to ur questions ... my question is how will i get client id and client secret and callback url from foursqueare ,, requesting foursquare will respond in form of an xml so how will i show the results ..? what is the url for integraion with facebook ?? i have searche ddidnot find help on facebook integration.. i have downloaded fourquare.jar file and didnot find any javadoc there can u tell me of any javadoc version jar file and how do i integrate this api for my blackbery app ??
Offline  
Old 07-14-2011, 12:02 AM   #8
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

I use this code for searching location but i dont know how to get & show result

public void searchVenues(String ll) throws FoursquareApiException {
// First we need a initialize FoursquareApi.
FoursquareApi foursquareApi = new FoursquareApi("Client ID", "Client Secret", "Callback URL");
String s= foursquareApi.usersFriends(userId);
// After client has been initialized we can make queries.
Result<VenuesSearchResult> result = foursquareApi.venuesSearch(ll, null, null, null, null, null, null, null, null, null, null);

if (result.getMeta().getCode() == 200) {
// if query was ok we can finally we do something with the data
for (CompactVenue venue : result.getResult().getVenues()) {
// TODO: Do something we the data
System.out.println(venue.getName());

}
} else {
// TODO: Proper error handling
System.out.println("Error occured: ");
System.out.println(" code: " + result.getMeta().getCode());
System.out.println(" type: " + result.getMeta().getErrorType());
System.out.println(" detail: " + result.getMeta().getErrorDetail());
}
}
Offline  
Old 07-15-2011, 12:27 AM   #9
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

from this link :
developer.foursquare.com/venues/

i got all locations then i did JSON parsing
Thanks!!

Now another part of my project is remaining i.e facebook integartion
can you tell me foursquare api for facebook integration?
Will facebook be launch on invoking api?

Thanks once again !!
Please answer my queries if you have idea
Offline  
Old 07-15-2011, 05:50 AM   #10
whatMemory
New Member
 
Join Date: Jul 2011
Location: Largo
Model: 7100t
PIN: N/A
Carrier: us cellular
Posts: 8
Default Re: FourSquare API

Quote:
Originally Posted by xmncxzvt View Post
from this link :
developer.foursquare.com/venues/

i got all locations then i did JSON parsing
Thanks!!

Now another part of my project is remaining i.e facebook integartion
can you tell me foursquare api for facebook integration?
Will facebook be launch on invoking api?

Thanks once again !!
Please answer my queries if you have idea
Now JSON is more my flavor, my knowledge in Java is limited. I actually prefer PHP and Curl, REST. I use many API's Google, Bing, Yahoo, Amazon, CJ, Linkshare and to many others to list unfortunately foursquare is not one of them. As for facebook integration

aboutfoursquare.com/category/faq/
Offline  
Old 07-18-2011, 02:43 AM   #11
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

hi,

facebook has its sdk for integration with bb

i hv to to integarte twiiter with fb
any one hv any idea
Offline  
Old 07-18-2011, 06:17 AM   #12
xmncxzvt
Thumbs Must Hurt
 
Join Date: Mar 2011
Model: 8900
PIN: N/A
Carrier: Torch
Posts: 59
Default Re: FourSquare API

I integrate twitter_api_me-1.6.jar in blackberry
it gives runtime exception

any one hv any idea?
Offline  
Old 07-19-2011, 08:32 AM   #13
whatMemory
New Member
 
Join Date: Jul 2011
Location: Largo
Model: 7100t
PIN: N/A
Carrier: us cellular
Posts: 8
Default Re: FourSquare API

Are you looking for developer or consultant?

I am starting to think this conversation isn't really suitable for this forum, and this thread is starting to go off topic. But it is possible to discuss further in a different place, from a developer and or consultant standpoint.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads for: FourSquare API
Thread Thread Starter Forum Replies Last Post
Foursquare needs a BlackBerry developer foursquare Employer Job Postings 0 11-08-2010 05:36 PM
Application Says Access to Secure API error even though A60 listed API is not used diehard.srinivas GPS & Mapping 1 10-08-2009 09:13 AM
Differences between recently released GSM BlackBerry OS files Raptor464 General BlackBerry Discussion 3 10-07-2009 05:52 PM
Using LDAP api to get GAL jacytan Developer Forum 4 01-30-2009 12:57 PM
Invoking the camera and the new 4.6 camera API garyhgaryh Developer Forum 4 10-07-2008 09:05 AM


ENDOXPERT GASTROENTROLOGY MEMORY BASKET BRAND NEW picture

ENDOXPERT GASTROENTROLOGY MEMORY BASKET BRAND NEW

$118.36



2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW picture

2 - RAM DRAM Tray-Container Box For Server PC Memory DIMM Modules - Fits 100 NEW

$21.90



2 Computer Memory Packaging Tray Case for Desktop PC DDR4 Modules - Fits 100 New picture

2 Computer Memory Packaging Tray Case for Desktop PC DDR4 Modules - Fits 100 New

$21.50



Desktop Memory Case Tray Case for PC DDR DRAM RAM DIMM Modules - 2 fits 100 New picture

Desktop Memory Case Tray Case for PC DDR DRAM RAM DIMM Modules - 2 fits 100 New

$20.50



We R Makers The Cinch Book Binding Machine Round hole V 2 White Aqua 71050-9 picture

We R Makers The Cinch Book Binding Machine Round hole V 2 White Aqua 71050-9

$79.99



Dental Endo NiTi Gold Taper Heat Activated /Rotary Files Engine Use 21mm/25mm picture

Dental Endo NiTi Gold Taper Heat Activated /Rotary Files Engine Use 21mm/25mm

$296.92







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.