Skip to content

Tag: php

Fetch sender email address in Gmail message list API

I’m using Gmail API to fetch email address (of the sender) for last 10 emails. URL: https://developers.google.com/gmail/api/v1/reference/users/messages/list But Users.messages: list API returns message resource (which includes only email ID). And for fetching sender email address, I have to make one Use…

Zoom Api – I can’t update a meeting

I am trying to update a meeting using Zoom API but I can’t get it to work. I’m trying to do a PATCH request using eleague oauth2 client like this: I’m getting an empty response, and I’m not sure what is missing. Can anyone help me? Answer basically the response given by the api is blan…

Heroku PHP Immediately Consuming all of the memory

I have a Heroku 1X dyno that immediately consumes all of its memory upon restart. Here is the restart in the log: My procfile is just: My .user.ini is: None of this code is set to run in the background, it’s just an API that handles requests. And yet it’s immediately consuming the maximum memory a…

range of numbers from array

I have an array of sorted numbers, for example: In this case, we have the following ranges of numbers: 1) 33-36 2) 66-69 3) 89-93 I want to create an array for each range: Answer Output: