Facebook Reactions不会自动轮询Javascript SDK

时间:2017-04-20 22:33:34

标签: javascript jquery facebook-javascript-sdk

我通过OBS工作室为我的直播流创建了一个反应脚本。每当有人喜欢视频流时,我想打电话给api。我尝试设置间隔和设置超时但它们返回更新的值。还有什么好运我可以做些什么来让api更新直播而不必刷新页面?

% set working directory
cd('E:\Tutorial\SimFolder\');
runpath = 'E:\Tutorial\SimFolder\';

%%
myDir = 'E:\Tutorial\New_Files\'; %gets directory of files to be copied
myFiles = dir(fullfile(myDir,'*.txt')); %gets all txt files in struct

%%
for k = 1:length(myFiles)
  baseFileName = myFiles(k).name;
  fullFileName = fullfile(myDir, baseFileName);
  copyfile(fullFileName,[runpath 'file.txt']); %copy & rename file
  system('program.exe'); %run executable
  movefile([runpath 'newfile_1.txt'],'E:\Tutorial\Results\Run_1'); %this part needs to change
end

0 个答案:

没有答案