I need to use Imgur to upload images online using android eclipse. i created an account and was trying to register my application to get the client id and client secret. i reached here https://api.imgur.com/oauth2/addclient
I entered my Application Name as : com.nyp.assignment (is this just a name to it or we need to follow our package name? pls advise as well)
when i get to the callback url , i have no idea what to write for it. i've refered to here at https://api.imgur.com/oauth2 but still dont get it.
can someone list an example of a callback URL for Android? (Eclipse)
Related
I am trying firebase twitter login in android app and it gives this error.
E/Twitter: Invalid json: <?xml version="1.0" encoding="UTF-8"?><errors><error code="415">Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings</error></errors>
If firebase and app.twitter callback url are the same, it gives this error. If i change callback url it works but this time I don't see authentication info(user email etc.) in firebase console. I need to use https://appname.firebaseapp.com/__/auth/handler this on app.twitter for auth but it gives error. Any solution thanks in advance.
Latest solution
Just add twittersdk:// as one callback URL on your twitter app setting https://apps.twitter.com/ and it will work as a magic.
Most oauth providers require the redirect uri (which I suppose is the callback url here) to be predefined, for safety reasons. You say if you change it, you don’t get this error, but you don’t mention what the change is that you’re making. Either way, I think you answered your own question, you should change it and then work out why your next problem with user info is occurring, which is at a later stage in the oauth process.
I need to verify the spam score of mobile numbers using Truecaller API .I found documentation here . In the API URL , I need to send a APPKEY , But how to get that ? there is no registration page for Truecaller API .
https://api.truecaller.com/v1.0/search.json?userKey=APPKEY&phone=NUMBER
Any help will be appreciated...
You should Read this Document for Name Search API
it Says that....
The one thing to keep in mind is that all requests to our API require
authentication. For that, you will need to use a User Key (userKey)
along with your requests. These access details basically associate,
your server, script or program with a specific application. All
requests to the API must be made over SSL (https:// not http://).
It means you have registered Truecaller developer account then Do Login and get your Access Key(USER KEY) and pass it everytime you request to access API..
But I Think Truecaller API is not accessible for public users...
Read This Article for More Details : http://www.3scale.net/2013/05/truecaller-api-search-among-over-600-million-phone-numbers-worldwide/
Why don't you try this?
callerpy
Here is the explanation from the developer:
Truecaller Name Retriever.
Since my request for the API was rejected, I commenced using python parsing libraries.
Callerpy emulates the process one would encounter if using a web-browser.
I tried it, and it works like a charm from the command line.
This is driving me MAAAADDDD
I'm trying to implement "Log In With PayPal" on Android.
I'm using this sample app to try to get the login screen to show up. https://github.com/SeraphimSerapis/PayPal-Access-Android-Example
I have created an app on the https://devportal.x.com/ website as instructed, I just want to use OAuth 2.0, I did all the settings, no luck.
Also, followed the answer in here https://stackoverflow.com/a/16199165/546439 i.e. created a seller account on developers.paypal and clearly chosen login with paypal access and credentials etc, still no luck
I don't even know whether I should get the credentials from x.com or paypal.com, each of them give the same options but they return different keys, I am so lost.
Please help.
UPDATE: added auth URL I am sending
all of these are not working
https://identity.x.com/xidentity/resources/authorize?client_id=AXbPkxDchMYBBAWn2UExvLytvvbJDDXn6u-9nWNgF_J7SZmwQkdDTwxHkuKe&scope=https://identity.x.com/xidentity/resources/profile/me&redirect_uri=http%3A%2F%2Faccess.com%2Findex.php&response_type=code
https://identity.x.com/xidentity/resources/authorize?client_id=ATL6BhBqBYAwJnolhJDT04El5GtxxDzTMAQEb5kkCdZVDrMr_v5bWlPpw7nN&scope=https://identity.x.com/xidentity/resources/profile/me&redirect_uri=http%3A%2F%2Faccess.com%2Findex.php&response_type=code
https://identity.x.com/xidentity/resources/authorize?client_id=6956fcaf5d9fb4bbea22af7ce7f4cc7a&scope=https://identity.x.com/xidentity/resources/profile/me&redirect_uri=http%3A%2F%2Faccess.com%2Findex.php&response_type=code
This error meaning that you are sending wrong client_Id "or not sending it" within the URI asking for token which is sent to authorize URL /authorize?client_id={client_id}, please share your URI to check it.
client_id string Unique client identifier obtained through the
application registration process. Required.
from https://developer.paypal.com/webapps/developer/docs/api/
I stumpled across a similar problem. I already hat an REST app running and tried to implement PayPal Login. Everytime I tried to use the sandbox client_id I got the same error message as you.
Took me some time to figure out, that, in my own stupidity, I tried to call
https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize
instead of
https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize
Now everything works for me
I had faced the same issue, I know this is a old issue and my solution may not be of much help. But I felt like sharing my fix.
I use devise for authentication and I wanted to implement PayPal login.
I configured omniauth for paypal inside config/initializers/devise.rb file. But by default the authentication path was "https://www.paypal.com/". As #Ello mentioned in his answer we need "https://www.sandbox.paypal.com/" url path for sandbox.
Then I figured out that we can change the url path to sandbox by passing sandbox as true in omniauth configuration.
So this is what I did in devise config file to resolve the issue
config.omniauth :paypal, PAYPAL_CLIENT_ID, PAYPAL_APP_SECRET, scope: PAYPAL_PERMISSIONS, sandbox: true
See am doing an android application,it has a web back end,am using wordpress as the web back end,but how can i code web services in wordpress?suppose i need to fetch some contents from database and pass it as json to android phones.So where should i place the php script or how can i do this?Is it possible to do web services using wordpress?
Here is the code:
$select_qry="select * from admin_details where username='$uname' and password='$paswd'";
$result=mysql_query($select_qry);
$rows=mysql_num_rows($result);
if($rows>0)
$admin_arr=mysql_fetch_assoc($result);
json_encode($admin_arr);
How can i do this in wordpress?
Please help me..
Thanks
You can follow these steps:
Create a template with your PHP code
Create a page. Let's say the admin page is /my-service. Assign the template you created in step 1 to this page.
Your adroid application can now call your wordpress service via the URL . mydomain.com/my-service.
Notes:
I assumed you meant a REST service.
Creating web services in WP is possible, but not ideal because URL pathing would be very hard. i.e. Wordpress wouldn't know how to parse /player/id vs /player/id/status .. the first asks for all the player data, the second asks for a particular attribute of a player.
The Wishlist Facebook app example is supposed to demonstrate adding custom objects to the Facebook open graph. I have managed to get the application so that it runs and creates a Facebook object with a graph ID. The problem is I don't see any of the custom object information I enter on the Android end of the app appearing at the Open Graph node associated with the returned ID, nor do I see this information appearing anywhere else on the internet.
The Android end the app seems to encode the information into a URL which is then added to a bundle and put in an HTTP post. For example when I entered the product name "baseball" along with some image the bundled URL was:
https://evening-frost-8481.herokuapp.com/Server/product.php?og%3Atitle=baseball&image=4f038f901dc31.jpg
When I examine the resulting Facebook aggregation it contains a link to the url below (note: there is no explicit reference in my app to the extension /Server/product.php which suggests Facebook may be receiving some of the information sent from my Android app.)
http://eveningfrost8481.herokuapp.com/Server/product.phpcode=AQAcvYSQQhesHLoXFHF9NUK2m__2_ye722T8lTfCs_9EKlgWp-ngUKls-fUet7FXUG6Gv8pbEpDuSATVpdsHUE7FcD6TmU
Is there anyone out there who has successfully implemented this demo who can give me some over view of how the custom data is supposed to get to the internet and finally Facebook?