Output JIRA filter to website via REST query? - php

I'm creating a kind of portal for my team as part of our company's annual Hackathon and wanted to include results for a specific JIRA filter on the front page of said portal. Idea is so that when you log in, you bring up the portal and it'll show you a list of the latest issues say or upcoming changes or RFCs for your attention.
Could I do this via REST where a script automatically grabs the content and then updates a HTML or PHP file with it?

Yes, depends on your JQL I believe you can do it via REST API. Atlassian documentation contains couple of good examples of the REST API and JQL. You can take a look at it here.

Related

How to build a basic web app on WordPress site using AWS API Gateway

I want to build a simple Software-as-a-service web application that performs web scraping - the result per execution will be a table of results with several rows and columns. For the front-end, I wanted to build the website using WordPress since I am familiar with making basic websites there and like the plugins available. For the backend I plan on using AWS Lambda to perform the task serverless-ly. The user will log in to the site, then when they want to use the service will enter some keywords via a form, and that will send HTTP request to AWS API Gateway, which is connected to my Lambda function. Currently, the AWS Lambda function writes results into AWS DynamoDB as it goes - perhaps I need to write a second HTTP request method to query the results, or return the results in the same method that scrapes them instead.
Even after hours of googling, there are several areas in which I am unsure how to proceed, or if I have chosen the right path (I have no prior experience in this area.) Two of the biggest puzzles I have currently though are:
How can I use WordPress to send data to AWS API Gateway? Do I need to write some PHP code and if so what does it look like and where should I put it?
How can I present the results on WordPress site for the user? Should I keep the results saved on DynamoDB and query them when I want to present them, or should I store the results on the WordPress database? Ideally they would see a big table and have options to export to CSV, for example.
Thanks for your help and patience.
Cheers,
jack
There are a couple of possible ways this can be accomplished. One way is to just use webhooks. Most form plugins come with the option to use webhooks and doing it this way is pretty straightforward. Here is an article from WPForms on how to configure it WPForms and Webhooks. Below is an example of how I have used it. The example shows a form that sends data to AWS API Gateway which triggers AWS StepFunctions and also puts the customer information in DynamoDB
WPForms Webhook to AWS API Gateway

Zingaya possible call from web page Likewise By using Nexmo/Twilio (possible/not possible) to call click that button from web page?

Anybody help me for answer the following Questions.
Zingaya enables voice calls through any computer, right from a webpage. No download or phone is required. Zingaya offers this seamless voice calling capability to website operators – whether it’s a huge e-commerce enterprise or your personal blog. Simply embed a “Call” button into your website. Visitors can click that button and the call is immediately forwarded to your landline, mobile phone, Skype account, or other computer. All you need is a website; all your visitors need is a browser and microphone. It’s that easy.
https://zingaya.com/
https://api.zingaya.com/ZingayaAPI2/Reference.pdf
Likewise, By Using Nexmo/Twilio make a call from web page to particular mobile number is possible or not.
It is possible to do this with Nexmo. We wrote a blog post about this back in 2018. It still provides a good example of the code you would need to implement to make this possible.
However things have changed a little since then and it is now possible to build a click to call button using the Nexmo JavaScript Client SDK.
All the code and all the steps to go through to build it are in the Client SDK Documentation
Absolutely possible with Twilio using a few different approaches.
Call across the public telephone network (PSTN) - connecting both via their regular phone.
Connecting the two parties and calls using VoIP (using WebRTC)
A combination of both approaches for each call leg
You can also layer on a lot of additional call routing logic and/or mix channels based on your requirements (voice and SMS for example).
Build Click-to-Call into your Web Application
Twilio Client Javascript Quickstart

Card Data/fetcher/ previewer API configuration for a php website on Magic the Gathering

I would define myself as a junior PHP developer (as have written small scripts occasionally). A week ago I started a new project to make a website for magic the gathering (card game) where users write and publish their articles on the game or tournaments.
Normally it wouldn't be a problem because if there is any external source, it could by hyperlinked and the problem is solved.
But in this case in articles users have to discuss about MTG cards, upload decklists and stuff like that and can't put hyperlinks for these things and neither create a database for all cards as only 3 months new cards are published with new set release.
What I am looking for is a 3rd party code integration into my project where user typing a string such as "[card_data]NAME OF CARD[card_data]" have a card preview by clicking on it.
There are several websites like:
https://www.mtggoldfish.com/articles/instant-deck-tech-five-color-birds-modern
https://www.channelfireball.com/all-strategy/articles/
and several other website.
I couldn't try anything because I don't know the procedure to call an API in php script, tutorials on youtube, or w3schools are very simple and often they are about facebook and google apis .
There are websites that have APi available for mtg cards data such as https://docs.magicthegathering.io/
https://scryfall.com/docs/api
https://www.echomtg.com/api/
But I am missing the part of integration them in my website.
I would like to have something like in this example where "Wasteland" is a card and by hovering on it or clicking on it there should be a card preview:
Of course, the easiest way to make Wasteland useless is never to play any land at all
I found a really easy and simple solution to the problem above. I'll use tooltips of https://deckbox.org/help/tooltips

Symfony 3 consume api data without using ajax or Angular

I'm working on a rest API to sell as SaaS. I already have most of the functions that interest me (integration with Mercadolibre a Spanish web site, market payments, google maps, social networks and also the accounting management part).
But now I want to add the possibility for the client to have a FrontStore where they can offer services with a few default templates that feed on API resources.
The issue is that I do not know how I can keep it isolated from the API code without using Angular, as Angular for websites affects a lot to the SEO. (the control panel and the mobile app did not have problems because I asked for everything by Ajax but those two things are not customizable)
So I do not know what to do.
Summarizing the question is: Since they could give access to templates or themes but not to the backend, it will be on another server.
I had planned to make 1 instance of the program for each client, but I do not want to do that since I did multi-company and I want to take advantage of it.
But I want to offer my 10 basic templates, the service to make a premium and also the possibility of the client to upload their own page. I hope I was clear.
I work with Synfony 3.0.0 and Angular 1.6 on a LAMP platform.
I need some idea to make possible get data from another server that have the rest API and use it just for a website like showing products or that kind of things. But without using Ajax or Angular templating.
I leave you a image to clarify. The left side is the private part, this is not customizable for the client, the right side is the web site and I want make it customizable by templates consuming the data from the API.
i don't understand all but if you need to consume API without ajax or angular, you can use guzzle http to create a client class that contains all your webservices (like showing products or that kind of things). This a tutorial how can use it. Hope help !

Proper Method for Google Calendar with PHP

I am working on a website for my organization which will allow users of the website to create/modify/etc room reservations for a number of spaces in our building.
Each room has a Google Calendar which links to several monitors around the building to display what rooms are [un]available. So, my goal was to utilize these calendars by having the website I am creating edit these google calendars. The problem I am having however is that from all the documentation I have been able to find, it looks like you have to prompt each user for Google Log-In. This is what I am trying to avoid. I want individuals to be able to log-in to my website, and then on the backend my website provides the authentication to Google so that they can add/edit/remove events from the aforementioned GCals based on permissions on set on their account.
Can anyone help direct me to the proper documentation? I've found a couple of things through some intensive Google-ing of my own, but I've become extremely confused about what method I should be using.
Any assistance in getting things rolling is appreciated!
If I understand it correctly, the concept that you want is to create a website that writes into your own calendar and not on the users calendar. Exactly what this 3 part tutorial of Sample Web Page for Booking gives:
Part 1: Setting up Google Calendar
Part 2: OAuth2 and Configuring Your ‘Application’ With Google
Part 3: A Sample Web Page For Bookings
This tutorial worked for many like what has been done in this SO post - How do I connect to the Google Calendar API without the oAuth authentication?.

Categories