Providing REST API over Firebase - firebase

As far as it goes to standard clients, be it web, mobile, etc. the path to authentication is clear and simple. Firebase provides this facility out of the box.
However, when it comes to exposing a platform through REST API, what would is the way to go?
If Firebase supports, I could not find anything thus far online about it.
Has anyone in this community implemented something similar on top of Firebase?

Related

How to send localized notifications using the Java Admin SDK version of Firebase Cloud Messaging?

Does anyone know if the Java Admin SDK FCM module supports localization?
According to the docs, at least for the REST interface, we can specify body_loc_key and title_loc_key instead of body and title Strings which will then be localized on the received devices.
It doesn't look like there is any way to do this using the Java SDK, although it seems unlikely though as this must be a common requirement.
With the help of several nested builders, yeah finally we got to the working solution.
https://dev.to/davebrown1975/localised-notifications-with-firebase-cloud-messaging-fcm-ecn

Firebase Cloud Firestore "Request/response" documentation

Most of "bigger" project I was working with was using REST API for Frontend->Backend communication. I was using Firebase Cloud Firestore for some small (one-day/hackathon) projects. Now I'm thinking about using Firestore for some bigger project but I'm not sure if this will work.
For "standard", REST api project I had Swagger documentation, where each developer could see list of all endpoints with request/response data structures. How does it work with Firestore? Can I create similar documentation for developers to check data structure, so they will know what can they add and what should they read? Or maybe there is another way?
I'm thinking, maybe there is no tool for this kind of documentation because frontend data structures are defining database structure? But what if I am connecting database from two or more platform (ex. web, mobile and cloud functions)? How can I synchronize knowledge about data structures between all the developers?
I was looking for some answers but couldn't find anything useful expect advice to manually maintain some documentation. How does it work in your projects? Is there some automation? Manually written documentation? Or no documentation - everything "in code"?
I understand your concerns, but unfortunately, there is no such tool available for Cloud Firestore to generate the documentation for database structure as Swagger.
I believe you can do it programatically.
From
Generating Swagger Docs in Firebase Cloud Functions project
I'm using express and nodejs in my Firebase Function implementations, and for me, Swagger doc generation can be implemented via the following libraries:.
https://github.com/scottie1984/swagger-ui-express
https://github.com/Surnet/swagger-jsdoc
You can find other libraries at:
https://swagger.io/tools/open-source/open-source-integrations
In addition to the responses there, the following service allows you to access Firestore metadata, click the explorer tab, looks promising for your use case https://aapi.io/api-directory/Google_CloudFirestore_GoogleCloudFirestoreAPI_v1beta1 though not necessarily more so than the links above.

Building a real world Flutter app with Firebase and Stripe

I'm trying to create a full on mobile app using Flutter and have selected to use Firebase as the backend support.
So I've seen that Firebase docs and tutorials for Flutter are available for basic needs such as Authentication, CRUD and things alike. However, my app, like most others has nuanced features that the docs and tutorials do not cover, I was wondering if anyone has any resources (GitHub repos, videos, etc) that could be used to build features like the following:
User persistence
Friend's list
Group creation by selecting friend's from list
Making transaction posts (I'll use Stripe's API for transactions) in these private groups
I was unable to find resources that matched these features and before I started getting my hands dirty with building them from scratch myself I wanted to see if anyone here knew of any that I may not.
I've tried almost all youtube tutorials and code labs and things alike.
Thanks!
-
I'm trying to do the same thing.
At first I recommend this course on Udemy: https://www.udemy.com/course/learn-flutter-dart-to-build-ios-android-apps/ for the basics.
It will explain Flutter and Dart and their interaction with the Phone in detail and give you also some basics in Firebase Authentication. It's only like 10 bucks I'm 70% in and it's pure gold.
From there you can google or youtube the content that you need. StackOverflow, Youtube and Medium.com are your best info sources.

Can the telegram auth SDK be used within a browser

I'm struggling to get my head around the basics, and to find somewhere to ask for help. I know that the first two questions are a bit wooly by Stack overflow standards.
is there a forum/channel somewhere for a dialog with people trying to use MTProto?
is https://github.com/zerobias/telegram-mtproto the easiest to use implementation of MTProto in JS?
can it be used in a web client (i.e. with and ES6 import in a webpack environment)?
I'm seeing a bunch of errors but some of them seem to do with using webpack 4, but I'm not sure if what I want to do is even possible (see Accessing Telegram API via web-based client), although I have now mananged to get a 2FA code sent
My aim is to create a client that can log into certain telegram channels where all the content comes from a bot, and to parse information from them
Connecting to the Telegram MTProto API is possible in browsers. You should use a library to do that. I'm going to mention some functional and maintained libraries.
There is the official TDLib with browser support, but it is quite hard for newcomers to use.
There is also GramJS which works on both Node.js and browsers, has type declarations for TypeScript and an easy-to-use API. It also take cares of many things like caching entities, so you do your work even faster. You can even change the lib target to use as an ES module in the browser.
is there a forum/channel somewhere for a dialog with people trying to use MTProto?
You can consider joining #gramjschat.

Is it possible to build an application for the LinkedIn platform?

Do you know if it's possible to build an application for the LinkedIn platform?
Yes, they have API at http://developer.linkedin.com/index.jspa, allowing access to the profile, connections, messaging and more.
While LinkedIn has promised a public API for a very long time now, they have yet to deliver.
No, there is no public LinkedIn API yet.
IMO, their widgets (which there are only two of at the moment, which are very limited) don't count.
They say that they are open to being contacted with specific uses for their API and they may give access to parts as needed - but that is if they accept your ideas for integration. They have been very picky with this - and have not accepted my attempts to integrate with LinkedIn yet, they tell me I have to wait with everyone else, apparently my applications are not "high-profile" enough.
Sure, you'll find many Google results talking about their "promised" API, but they are empty promises and won't be of much help.
Yes, Linkedin has an API:
http://www.programmableweb.com/api/linkedin
http://blog.linkedin.com/blog/2007/12/the-intelligent.html
So you could build an application that uses it.
Update: (from second link)
We’ll be phasing all of this in over the coming months and to get involved with the Intelligent Application Platform either for APIs, widgets, or hosted applications, send us an e-mail to developers#linkedin.com telling us what you want to build and what you need to build it.
Since there are published Mashups using LinkedIn I would assume that means you can use the API even if the documentation isn't readily available.
As a tip, in the future include links to what you found that didn't work, so we know not to give it to you again.
I poked around a bit more and I found some more on their widgets which appears to be the main focus of their API.

Resources