Setting access control for comments (allow comments = approved instead of all) using youtube Api V3 - api

We are using youtube api v3 to upload video from our content management application to youtube. Everything works as expected. But in advanced settings there are options for comments in UI. With in comments there is an dropdown for Allow comment. By default it is setting to all. How can we set to approved using youtube v3 api. Using v3 api can we do it at all? If not any chance that might be added in V3 and how soon it will be? How can do it in v2 if we can't in v3? Appreciate you help in advance.

I too don't how to update it through V3 but we can do it in V2. In access controls you can find "comment" parameter. For approved comments i think you need to set it as "moderated".

Related

Google Spreadsheet > Sheets API

Editable Link - https://docs.google.com/spreadsheets/d/1vrzchTHVwwzc9wgFGmtc_zBsh27CEtE7KOyeNDuLwC0/edit?usp=sharing
Published to Web - https://docs.google.com/spreadsheets/d/e/2PACX-1vRaJd3YpKnemAneU47RI58m7cxQsYFdViFBxJPVCrb8ehbLMqIqU6yNhchJzdroflL8IhA5s6V56IJP/pubhtml
API Link - https://spreadsheets.google.com/feeds/list/2PACX-1vRaJd3YpKnemAneU47RI58m7cxQsYFdViFBxJPVCrb8ehbLMqIqU6yNhchJzdroflL8IhA5s6V56IJP/public/basic
When I structure my sheet API link it returned a page not found message. I am following the structure presented in the Developer Tools (https://developers.google.com/sheets/api/guides/migration#retrieve_row_data) and yet the continues to show as unaccessible.
Is there a different struct I should follow or has google made changes to the accessibility of if the spreadsheet API?
Any suggestions would be helpful.
https://developers.google.com/sheets/api/guides/migration#retrieve_row_data this is a migration guide and you are using their deprecated v3 API https://spreadsheets.google.com/feeds/list/2PACX-1vRaJd3YpKnemAneU47RI58m7cxQsYFdViFBxJPVCrb8ehbLMqIqU6yNhchJzdroflL8IhA5s6V56IJP/public/basic
the v3 API is shutdown https://cloud.google.com/blog/products/g-suite/migrate-your-apps-use-latest-sheets-api
use v4 API instead (click V4 API tab in the guide)

Twitter API V2 video url

I'm trying to fetch a tweet's video url using API V2.
Using API V1.1 I can use
https://api.twitter.com/1.1/statuses/show.json?id=<ID>&include_entities=true
and get the direct mp4 urls in the response at
extended_entities.media[0].video_info.variants
But using API V2 I can't seem to find any ways to get those, I was only able to get the video thumbnail but not the actual video.
I've tried it with both the lookup and the recent search endpoints but couldn't find a way to do that.
In lookup docs twitter says:
This endpoint was recently graduated from Twitter Developer Labs, and is the replacement of v1.1 statuses/show, v1.1 statuses/lookup, and Labs Tweet lookup. If you are currently using any of these endpoints, you can use our migration materials to start working with this new endpoint.
but that doesn't seem to be the case, is that feature not included ? Also if there is any other way to be able to embed a twitter video in a web page (without the tweet text) that'd be helpful.
The videos are not currently available in the Twitter API v2 at this time. This is a known request.
For those who still looking for an answer, you can do it on the V2 by adding the following parameters :
expansions=attachments.media_keys
media.fields=variants
Your final link should give https://api.twitter.com/2/users/{{uid}}/tweets?expansions=attachments.media_keys&media.fields=variants
Source : https://developer.twitter.com/en/docs/twitter-api/data-dictionary/object-model/media
Progress on twitter-api-v2 media handling, Maybe this will allow the video URLs too in the response.
https://twittercommunity.com/t/v1-1-media-endpoints-available-for-essential-access-in-the-twitter-api-v2/171664

Programmatically convert ready -> draft GitHub PR or vice versa

Does anyone know how to convert a GitHub PR that is ready to a draft PR and vice versa programmatically? I am trying with the v3 ReST API and the v4 GraphQL api. I can change properties like title and body just fine in both APIs, but when I try to change the draft field, it's not supported. It's also not mentioned in the docs. Somehow it must be possible, at least the GitHub web UI has buttons to do just that, in both directions, but it's not calling either API, but backend functions that have nothing to do with the v3/v4 APIs.

BigCommerce API v3 - Google shopping with BigCommerce API v3

I am working with the v3 of the BigCommerce API and need to find a way to update or on-create the field for google shopping fields for each product.
There is a GET googleproductsearch in v2 but no documentation on updating seem to find an update path
I have tried following this thread:
Accessing Google Shopping Fields via BigCommerce API
Does anyone know what the endpoint to update or create a google shopping setting onto an item using the API instead of the site:
The Google Shopping feed functionality is currently being sunset and isn't included in V3 Catalog APIs, which is likely why documentation for an endpoint was removed. I was able to see the Allow Headers only includes GET, HEAD, and OPTIONS so it doesn't look like modifying these fields is possible via API. You can use a CSV import to accomplish this, and you can find more info about that here: https://support.bigcommerce.com/s/article/Importing-Exporting-Products#table

Soundcloud explore section

I am exploring soundcloud's API, and I have seen that thought through the web you can access explore sections, I haven't found any docs that help you to do so through the API.
Anyone has tried this before?
soundcloud explore section uses new API calls that are still not documented. same with stream.
but you can check under the hood (in chrome developer tools -> network tab) to find new api calls.
for example, main explore section points to https://api.soundcloud.com/explore/sounds/category?limit=10&offset=0&linked_partitioning=1
and rock section points to
https://api.soundcloud.com/explore/sounds/category/rock?limit=10&offset=0&linked_partitioning=1
p.s. don't forget to include your client id in the calls
The API has been updated. You can use following URL to access the explore section (based on #cucko's reply):
https://api-v2.soundcloud.com/explore/categories?limit=10&offset=0&linked_partitioning=1
With client id in the call:
https://api-v2.soundcloud.com/explore/categories?limit=10&offset=0&linked_partitioning=1&client_id=YOUR_CLIENT_ID
The API has been updated.You can use following URL
https://api-v2.soundcloud.com/charts?kind=top&genre=soundcloud%3Agenres%3Aall-music&limit=20&offset=0&linked_partitioning=1&client_id=YOUR_CLIENT_ID