Reply to Post
Classic Spy
ashishnigam
3 Posts
Member since ‎08.03.2012

Location API and OAuth Redirect URL

I am a new guye for at&t APIs, I would like to know that how to use OAuth Redirect URL.

 

  1. What should be the value in case of mobile application(iOS,Android etc).

 

2.  How to use this in application?

 

when i setUp my application it's required for

 

1.  Messaging On Behalf Of (Beta)

 

and

 

2.  APIs
Any help will be great.

Thanks

Moderator
bs595r
148 Posts
Member since ‎01.13.2012

Re: Location API and OAuth Redirect URL

ashishnigam wrote:

I am a new guye for at&t APIs, I would like to know that how to use OAuth Redirect URL.

 

  1. What should be the value in case of mobile application(iOS,Android etc).

 

During OAuth, the control is handed over to AT&T, such that the actual authentication is between the end user and AT&T. After that handshake, AT&T needs to give the control back to your application. It does this by redirecting the end user (via the OAuth redirect URL) back to your application.

 

2.  How to use this in application?

 

You just need to make sure your application is listening on that OAuth redirect URL, such that when the end user is redirected back to your application via that OAuth redirect URL, your application can process that redirect and continue with the end user's experience with your application.
Hope that helps,
     --brett
Expert Spy
padma
7 Posts
Member since ‎08.22.2012

Re: Location API and OAuth Redirect URL

Hi,

     I used location api but i didn't receive the location information in UI. From the previous reply i understood that location information will be placed in OAuth.jsp.

     Please confirm whether my understanding is correct?

     

Moderator
bs595r
148 Posts
Member since ‎01.13.2012

Re: Location API and OAuth Redirect URL

Hello,

 

OAuth is just for the authentication. It will return an access token that you can use in the Location API request.

 

Are you asking about an application you are developing, or is this specifically for AT&T's sample application?

 

Cheers,

    --brett

Expert Spy
padma
7 Posts
Member since ‎08.22.2012

Re: Location API and OAuth Redirect URL

Thanks brett. My previous post was specific to AT&T's sample application. After a long search i got the location information in UI my modifying the oauth redirect url . My mistake was in specifying the oauth redirect url . When registering the application i gave "http://localhost:8080/SampleApp" in outh redirect url instead of "http://localhost:8080/SampleApp/oauth.jsp". This fixed my problem. Now i am planning to incorporate this api(sample application) in my application to provide location based services but i am not able to customize the pages to fit my application since the pages are hosted by https://api.att.com site. Can you tell me is there a way to customize the pages to fit my application?.
  • of 1