I am trying to integrate the Lyft Ride Request API into my Android app - specifically the Lyft Button. When I attempt to add my app in their developer's console, I see the following after adding the app:
On April 15th, Lyft made changes to its developer platform. As a
result, this application no longer has access to the API platform. You
can read more about the changes here. If you think this change is made
in error, please reach out to your Lyft representative.
The link that is provided does not contain any relevant information nor is there anyone or anything to consult on their website for assistance.
Is the Lyft Button no longer available. If it is, what are the app requirements?
So I decided to ignore the No Access message and I went ahead and integrated the Lyft Button API into my application and all seemed to work.
Lyft Button API integration for android is at this URL:
Lyft Button API
One point of confusion was the requirement for a client token and client id. You do not have to supply a token or an id. You can use "..." as shown in the API instructions for both values.
I was able to confirm that the button is successful in grabbing start and destination locations and launching the Lyft app which then shows the route and vehicles in the area with ride prices.
There is no sandboxing option for testing, so be careful. It looks like any rides you order and confirm will be charged to your credit card.
Related
I'm just getting started with using the Google Drive REST API in an Android app. (I can't use the Google Drive API for Android because the app needs to share files, and perhaps a few other things, that GDAA doesn't support.) I'm stuck on a couple of points.
The first has to do with OAuth2.0 credentials. I went through the Android quick start example and it works fine. I set up a project on my Google developer console and generated an OAuth2.0 client ID and secret and also downloaded the JSON credentials file. However, the quick start example doesn't show how to plug any of this into the app. The only thing I found in the docs that seems relevant is GoogleClientSecrets, but I don't see anything about how to use that in an Android app. (The Java quick start example uses this, but it's not integrated with Android's account manager and doesn't seem right for an Android app.) When I run the Android version of the quick start app, no activity shows up on my developer console, which suggests to me that the app is running in some sort of anonymous mode. As I understand it, that would limit the app to a very low daily quota of transactions.
Second, I noticed that the GDAA and the REST API for JavaScript both have nice file picker APIs. I couldn't find anything similar in the Java/Android API.
So here are my specific questions:
How do I use my app's OAuth2.0 credentials from the developer console in a REST API for Android Java app? I feel like I'm just missing something obvious.
Is there a file picker API for the Google Rest API for Android?
After stepping through the library as I executed the Quickstart example (a painful process, as there is no source code), I discovered the answer. It turns out that you need to specify the client ID in the manifest. Specifically, you needs the following under the <application> tag:
<meta-data
android:name="com.google.app.id"
android:value="app ID from your API console"/>
Once this entry is in the manifest, then when the app uses the Google Drive REST API to interact with Google's servers, the transaction is correctly logged as traffic in your app's console. Without this entry, the app seemed to work in my testing, but no traffic was logged. I seem to recall (from an old Google I/O video) that such "anonymous" apps still work, but have a very low usage quota (something like 10 or 100 queries/day).
For those who are curious, I found this key in the class com.google.android.gms.common.internal.zzz, found in the play-services-basement-10.2.0 library.
Save the client_id.json file downloaded from the Google API console into into your app's src/main/res directory.
I was stuck exactly the same, but after I built my app with the file included the Google API started working.
How do I use my app's OAuth2.0 credentials from the developer console in a REST API
The pages around https://developers.google.com/android/guides/api-client give you all that you need to know. In particular, note the Java Quickstart you were using is for generic Java. The way Google Play Services on Android manage credentials and accounts is very Android-specific.
Is there a file picker API for the Google Rest API for Android?
Not that I know of, but depending on your use case, you might be able to use the GDAA picker. Ultimately, both GDAA and the Java REST API are layers above your Drive storage.
I am working on finishing up an Android app that has been under development for ages. The app uses the Facebook SDK for Android to post a simple link to the users wall after making a selection from a PlacePicker fragment. The SDK was very old and was using v1.0 of the FB API, so I have had to update it before we publish. The SDK update - while frustrating - was successful and the app still works without any further changes.
There is also a Rails application which uses the same FB App for Omniauth registration/login. The Rails app uses the omniauth-facebook gem, which has been updated. There were no further updates needed for the Rails app either.
The client, however, is requesting "proof" that the app now uses >=v2.0 of the FB API and I am not sure what to give them. FB is clearly capable of knowing when a FB App is receiving outdated API calls, but can it show me whether it's receiving >=v2.0 API calls? So far the only thing I have been able to find is an Insights graph of daily API call counts but there is no information about the calls other than their quantity.
You can look at this dashboard to see if your app is showing in the "Top Affected Apps" table. If so, it will tell you what percent of the calls is v2.x.
Also if you can debug the app, put a breakpoint here: https://github.com/facebook/facebook-android-sdk/blob/master/facebook/src/com/facebook/Request.java#L233
Or call the getVersion() method on your request object to see what version it's hitting.
My company is working on a project where we mainly need two-three things from facebook get back the list of friends who are using our application, send any kind of invitation to other friends and maybe post on user wall.
What are our possibilities since I see that version 2.0 is very limited compared to 1.0 I just want to confirm this with someone who has recently did more research on this.
How I see Graph API( /me/friends) only returns the list of friends who are using the application and gave permission for user_friends. And pretty much no way of getting full firend list of a user.
Second sending notifcations or any kind of message to new users or is there possibility to share it on IOS/Android. After some research how I see chat,messaging is depricated only https://developers.facebook.com/docs/sharing/reference/send-dialog is available and
invitable_friends only available for games.
Is there anything that we might be missing could anyone give us some advice what is possible since there are a lot of suggestions on the internet on this but not all are up to date.
You are correct Friends list will only return app using friends . And invitable_friends is only for gaming app. I was hoping that something would change in Graph API 2.1 but they have become more strict .
Rest API which was depricated is now stopped. Here are changes in Graph API verision 2.1 as compared to version 2.0
This is the way facebook wants it, so appereantly there is no way to get friends list or to send invites to Non App using friends
You can see the future migrations and Platform version details indicating Facebook is in no mood to make any changes regarding this in near future
My current Android application allows users to signin using the Google Plus button.
A feature of my application is that i would like to reward users who return within a month of first signing in.
Do i have to remember when they first signed in using Google Plus?
Or does the com.google.android.gms.plus API expose this detail? e.g. initial Sign In date cross referenced to my Application.
I have searched the com.google.android.gms.plus docs but couldnt see anything.
Did i miss something?
I'm not aware of a G+ API that tells you when a user first authorized an application. I would recommend using Androids app data storage. That should be pretty lightweight. You can also open a feature requests.
Integrate Android Paypal for my application, however their are few question thats bugging me regarding the sdk.
For their latest paypal sdk https://github.com/paypal/PayPal-Android-SDK:
A1) Is there a way to set a orderId or something similar so my server know what my customer buy?
A2) If my app is not operate in US, am I able to use the full feature (paypal and credit card payment)?
A3) How do I disable the card reader and only allow user to key in their card number or is it possible at all?
For their paypal MPL sdk https://github.com/paypal/sdk-packages/tree/gh-pages/MPL
B1) Currently getting "Please make sure all field have been entered" error message and error id 10004 on sand box while running the sample code. Any idea how to fix it or is it their server issue?
B2) Should I still use MPL when they trying to phase it out?
I'll try to answer all of these:
A1. The underlying REST API does not support this feature, though it is expected to be added soon.
A2. You can accept payments in any location and in any supported currency. Restrictions are only where the merchant account (e.g. your account) is opened, since each country's laws are slightly different. This list gives more detail.
A3. You cannot disable the card.io scanner. The idea is that it is easier to use, so can you help me understand the rationale for this request?
B. Please don't use the MPL. It's not maintained and has an inferior UI.