L
L
lazaryanc2019-06-26 21:19:34
PHP
lazaryanc, 2019-06-26 21:19:34

video.search not working?

Gives out only video_, help here is the code?

function SearchVideo($q){
  global $token;
  $video_search = api('video.search?q='.urlencode($q).'&adult=1&search_own=0&count=50&extended=0&v=5.87&access_token='.$token);
  for($i=0;$i<10;$i++){
    $rand = rand(0,49);
    $attach .= 'video'.$video_search['items'][$rand]['owner_id'].'_'.$video_search['items'][$rand]['id'].',';

  }
  return substr($attach, 0,iconv_strlen($attach)-1);
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lazaryanc, 2019-06-26
@lazaryanc

Decided, sorry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question