Retrieve Heroku logs programmatically - heroku

I want to be able to access the Heroku-provided logs for my Node.js app online. Is there a way to add this into my app, or to use some REST API with AJAX for this? If so, how?

You can use the Heroku Platform API to start a log session: https://devcenter.heroku.com/articles/platform-api-reference#log-session
There's a Node.js wrapper for the Heroku API here: https://github.com/heroku/node-heroku-client

Related

Heroku meme api gives me application error

So I've been using heroku meme api on my discord js bot, it was working fine untill today when it didn't respond I decided to check the website but when I opened it it gave me an application error, idk how to fix it any help would be appreciated the link I use is
https://meme-api.herokuapp.com/gimme
Heroku has discontinued free dynos and data services, it's possible that API was using those.
https://blog.heroku.com/next-chapter

Build complete own FrontEnd for RocketChat possible?

I would like to integrate Rocket.Chat into my website. I found out, that I can embed RocketChat via iframe and customize the style with the built in "Embedded Layout". However I would like to so to say build my own Web-Frontend-Client for a Rocket.Chat-Server with PHP and jQuery. Is that possible? So let us say I have 2 VMs running on my server, one for my homepage, one for Rocket.Chat. Could I somehow access the Rocket.Chat Server via jQuery Websocket Connection or with the Rocket.Chat API and login users and get and write messages (private and channel)? If yes, is there any documentation or example on this out there? Thank you very much.

Get responses form a specific Google Form PHP / Laravel

I try to access to a Google Form but the API is in Google Apps Scripts. So we can't access it with a PHP script.
I'm using Laravel and this package could do the job but it's not compatible anymore :
https://github.com/akaramires/laravel-googleforms
How can I execute a Google Apps Script to get responses (with files uploaded by user) in a specific Google Form ?
https://developers.google.com/apps-script/reference/forms/form-response
Any ideas ?
Regards
There are two possible ways that you could do this:
Consider deploying the Script as a Web App. In particular, have a look at the section Deploying a script as a web app. Deploying scripts in this way allows you to do GET or POST requests to execute the code inside Google Scripts on demand.
Look at using the App Scripts API. I've previously used this API to build multiple Google Forms rather than building each one manually.

Create webhook with only ruby?

I'm creating a telegram bot in ruby , right now I'm using long polling , but I wanna change to webhooks, but I'm only found information about creating webhooks in rails , so I don't know if is possible to set a webhook in a ruby only project.
Anyone did this? or have a tutorial? Maybe a lighter application in sinatra or rails api mode?
You could start with a simple socket server: https://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/Socket.html
However, creating a Rails app with one route for the web hook will not take you a lot of time. This will also give you a lot of flexibility to do more with your inbound data and app in the future e.g. admin dashboard, security, background processing, etc.

Parse and Uber API Webhooks

I’m building an iOS app that utilizes Uber’s API and Parse. After a user requests a ride in my app and the ride status changes, I’d like to update the in app screen and send a push notification. Uber’s docs say to use web hooks for this. I’m trying to figure out how I would do this if I’m using Parse. As far as I know, a Parse backend doesn’t have the ability to receive POST data from the Uber web hooks. I was thinking of making a small express server that would receive the web hooks POST data, clean it up, and send it to Parse’s API which would in turn send it to the client as a push notification. Is there a better way to do this?
I think you're on the right track. It looks like there are some projects in the Parse OpenSource Hub you could re-use for your purpose.
The alternative is to simply do a GET /v1/requests/current every few seconds within your app.

Resources