vimeo php api添加视频标签

时间:2018-08-15 06:36:19

标签: vimeo vimeo-api

这是我的代码

$my_data = array(
     "name" => "Sequence 01",
     "description" => "Video uploading test sequence 01",
     "tags" => array( "hello", "hi" )
);
$update = $vimeo_obj->request( $uri, $my_data, 'PATCH' );

它更新视频的名称和描述。但是它不会在视频中添加标签。 请帮助

1 个答案:

答案 0 :(得分:1)

目前不支持通过id 123 321 231 423 353 534 345 646 346 from to weight 123 456 2 123 435 3 432 654 2 342 543 4 234 323 3 432 543 4 234 543 1 234 654 1 edges <- read.csv("/Users/holly/edgeR.csv", header=T, as.is=T) nodes <- read.csv("/Users/holly/nodeR.csv", header=T, as.is=T) #libraries library(igraph) library(tictoc) library(network) library(data.table) #Edges data set includes from and to addresses for block 200k from Neo4j #edges <- read.csv("/Users/jonathanbailey/edges.csv", header=T, as.is=T) #Node data s et contains all the address nodes ids for block 200k #nodes <- read.csv("/Users/jonathanbailey/nodes.csv", header=T, as.is=T) #Show titles of data set head(nodes) head(edges) #Remove the weights column #edges$weights <- NULL #Removes duplicate values in the nodes data set nodes <- nodes[!duplicated(nodes$id),] # persuades the data into a two-column matrix format for igraph el=as.matrix(edges) el[,1]=as.character(el[,1]) el[,2]=as.character(el[,2]) #Creates a graph in R with edges and nodes clustergraph1 <- graph_from_data_frame(el, directed = FALSE, vertices = nodes) #Assigns the louvain algoritm to the above graph Community200k <- cluster_louvain(clustergraph1)更新视频标签。

要向视频中添加标签,请通过有效载荷为

PATCH /videos/{video_id}发出请求
PUT /videos/{video_id}/tags