How can I manage multiple seasons in a Vimeo On-demand page? - vimeo

According to the Vimeo API documentation, it is possible to retrieve a list of season objects for a single On-demand page. However, there doesn't appear to be a way to create multiple seasons per page, either via the API or Vimeo's management dashboard.
It appears that when an On-demand page is created, a single season is automatically created in it and all videos belong to that season. However, this On-Demand page from the BBC has multiple seasons, and indeed, when you query it with the API it returns multiple season objects.
How can additional seasons be defined for a single On-Demand page?

Related

I want to create a service that allows my company's products to move pages only for the products that customers have

This article was written using a translator.
There are many products in my company.
Like Atlasian, I want to create a service that allows my company's products to move pages only for the products that customers have.
In order to do so, you need to know the products of each customer, and I need to make sure that only those products can be clicked, but can you not use the database?
Using the database makes it so complicated that I want to implement it as simple as possible.
You need to know a programming language/ framework that allows you to create a service/api.
There are various ones available.
Search on the internet.
The architecture of a service is slightly different from directly having a data entry form that stores into a database.
Most apis'/ service entails you creating classes to do CRUD operations(i.e create,read,update and delete operations) by coding classes and then consuming the API into the application.
So yes you can have within the API classes that can be called and then used to store information that the customer has installed into a database, and also retrieve product values specific to a specific customer.
See API as mid layer between front end,and database

How to create a dashboard that takes data from multiple projects in reportportal

is there a way to create a dashboard that shows the stats of different projects in reportportal.
I can create a dashboard for different launches of the same project.
There is no capabilities for that at the moment.
ReportPortal team plans to introduce Organization level, which will be a container for project, thus can grab data from multiple project. But it's in a roadmap for 2020.
For now, there is a way, when you can report all teams/components/projects in one space and slice them by dedicated TAG for each launch.
Then create a filter-tab with specific tag, so teams can see launches related to them. And then dashboards can read data from all the launches.

How to get Amazon product information through API

I am looking for a way how to get Amazon product information through API. I found some articles how to get products data:
Amazon Product API Exploration: Let’s Build a Product Searcher
Querying Amazon's product details with the Amazon Product Advertising API
If I understand it correctly, I need access to Amazon Product Advertising API. I signed up as Amazon associate, but I wasn't approved, and thus I am not able to join Amazon Product Advertising API.
I messaged Amazon support and got this response:
This is the Amazon Associates team responding to your email.
Registration for Product Advertising API is only available to Associates who have received final acceptance into the Associates Program and are in an Open status. You are unable to join because your application is still pending or in a Pending status. PA-API is only for approved members or those in an Open status. This means that when the Applications team review your application and website(s), if your application is placed into an Open status, you will be automatically eligible for API access.
Our Applications team will review your application and website(s) after you have earned at least three (3) qualifying referral sales through your Associate Product Links. Please note, three (3) qualifying referrals means three separate orders and multiple items within an order do not qualify. Applications will be reviewed shortly after you’ve referred your third qualifying sale to Amazon.com.
To begin developing your website(s) and posting on social media, you've been granted access to Associate Product Linking tools in Associates Central (affiliate.program.amazon.com) under the Product Linking tab and Site Stripe (located at Amazon.com). Use these tools to generate at least three (3) qualified referral sales to initiate your final review. Until your application is reviewed. With the access to Associates Central, you have the opportunity to create product links, banners, or native ads to add to your website and start earning money right away.
If your website requires the use of PA-API, you would need to contact them directly to see what other options would be available, or use our other Product Linking tools on a different website or social media site(s).
I am wondering, how can I get access to amazon product information if I am not amazon seller?
Amazon recently changed their affiliate policy regarding API access. They want you to have three affiliate link transactions within 180 days to be in good standing. They will need to conduct a review of your affiliate site. Until then, the API keys will only be good for generating product links.

How to include child resources in Firebase API call

I have a Firebase database with the following structure
Stories
Cards
Photos
Users
Relationally, each story has multiple cards, which in turn have multiple photos.
Is it possible to use the Firebase REST API such that when I make an API call to get a list of stories, it will also include the related children Cards and Photos?
https://[project].firebaseio.com/stories.json?print=pretty
Note that in the firebase database, these are not nested within the parent, but as separate lists.
Unless there is more information, from your comment, it appears your data is all 1-1 relationships and in that case, there's no reason to separate it out.
So structure your data
Stories
Cards
Photos
Users
when you load a story, it loads the cards and photos that go with it so with once observe, you get everything needed.
That being said... Denormalization is generally a the way to go when the data has anything other than 1-1 relationships or if it's more complex than in this question.

Limits to application building in Google Apps Script

We are a Google Apps for Your Domain enterprise account, and Real Estate brokerage. We want to build a web application that ties together several Google Apps services. It would be great if we could do it all in Google Apps Script, but at the same time may stretch the limits of what's possible in Google Apps Script. We do not have the time or resources to do full application development using Google Web Toolkit (GWT). Is a framework approach the right solution?
We want to build an application that allows our agents to create a real-estate listing record. Each record is large, with 300 - 400 form fields per record depending on the property type. Many of the fields are 'lookup' fields with specific values in either a select-list format, or multiple checkbox format. (e.g. roof-type = choose one: slate, shingle, rolled-roof; appliances = choose all: refrigerator, stove, dishwasher; etc.)
Each record will also need associated photos in original high resolution format and also smaller resolution sets for display in various contexts. Each record would have 24-50 1MB photos. I'm thinking that we could use and integrate Google Drive for the photos because the process can be simplified for the user to drag and drop a folder from desktop to Google Drive. Having the images stored in Google Drive, and only referenced from the application would solve part of the implied storage question. I read that there is a 200MB ScriptDb Quota in Google Apps Script so I can see that being a potential deal-breaker just for the 'data' alone. I don't have an exact database storage requirement, but I know we'll have 700 records to start and that number will grow to several thousand.
The users of the application are all internal, so GAFYD auth integration is a nice benefit.
There is no form api currently, so how do we create the data entry form in the first place? It appears we would need to manually create the form, or else create a sample spreadsheet to auto-generate the form. But then how do we enhance the form to modify the select lists and attach validation rules, and dynamic form behaviors like creating/showing/hiding additional elements based on user input (e.g. enter # of rooms; then enter dimensions for each room).
Another potential showstopper is the resizing of photos. We want access to original photos in order to create further marketing materials, however in the application UI we would need to use various sized images at smaller dimensions for efficiency. (e.g. show list of properties with one thumbnail to represent each record) I guess there would be methods in the Google Drive api to create sub-folders to store the resized images, but is there access to graphics manipulation software like gd (maybe through an API to picasa)?
A record should be viewable in different layouts and views. For example full record detail, summary view, marketing flyer view.
Once a record is created, messages need to be sent to the agent creating the record, plus an internal team who processes the record for workflows including copy writing/review + marketing. That seems to potentially fit with the new Google Groups? Once the record is 'approved' then the application needs to generate a marketing email to several hundred external recipients; selected based on business rules from various pools. So the application would need additional storage, or possibly address-book integration to be able to manage contacts.
Future edits to records (e.g. price changes, photo changes) need to trigger the review/approval workflow.
Is Google Apps Script capable of handling the size, scope and complexity of this type of application? Or, would the recommended route be using a micro framework such as http://bcosca.github.com/fatfree/ to tie together all the Google Apps components using their respective APIs?
There is no form api currently, so how do we create the data entry
form in the first place?
There are two, actually: both UiApp (and the drag-and-drop GUI Builder for it) and HtmlService can show arbitrarily complex forms.
I'm thinking that we could use and integrate Google Drive for the
photos because the process can be simplified for the user to drag and
drop a folder from desktop to Google Drive.
Drive is integrated with Apps Script.
I don't have an exact database storage requirement, but I know we'll
have 700 records to start and that number will grow to several
thousand.
You might want to try Google Cloud SQL as your storage, which is 100% natively supported in Apps Script and is a "real" SQL database. However, several thousands records is tiny if you are storing the photos in Drive... ScriptDb could probably scale to several million records in that case.
Google Groups and Contacts are integrated.
Google's documentation can be found here: https://developers.google.com/google-apps/
Google Apps Script is sometimes surprisingly powerful, but it won't be very fast for the amount of data you're implying.
As you said, ScriptDB has a size limit, so it can't store everything. Spreadsheets are limited to 256 columns per sheet and 400000 cells. My way around this is splitting my data into a set of spreadsheets with a set of sheets. If you're in real estate, you can probably split your data by region and neighborhood/area to achieve something similar. If you really want to compact things, you can store a row of data as a stringified JSON object in one cell. However, it will no longer be human-readable.
Unless you're willing to pay extra for storage, it sounds like your pictures will fill up a Drive account fairly quickly. I'm not familiar with images in gadgets, so I'm not sure if they can be embedded from Drive.
I have no experience with Forms, but you can build a gadget using UiApp and call appendRow on a spreadsheet sheet to add the contents of all your fields. And by building your app like that, you can specify valid values for things (and have those read from a "config" spreadsheet).