Skip to content
Permalink
Browse files

fix(TDM-1) : fix issue #1

  • Loading branch information...
trollepierre committed Apr 13, 2017
1 parent aafa47d commit 2e89019d6a491f0a5ac3db8732181f6eb1d219aa
Showing with 6 additions and 6 deletions.
  1. +5 −5 src/Webhook.php
  2. +1 −1 webhook.php
@@ -2,7 +2,7 @@
use \Dropbox as dbx;
function verify(){
echo $_GET['challenge'];
echo htmlspecialchars($_GET['challenge']);
}
function webhook(){
@@ -44,26 +44,26 @@ function delta($myCustomClient ,$cursortxt, $url, $pathPrefix){
file_put_contents($cursortxt,$deltaPage["cursor"]);
if($numAdds+$numRemoves>0){
header('Location: lib/ajax/'.$url.'.php?id='.$id);
header('Location: ../lib/ajax/'.$url.'.php?id='.$id);
}
}
function process_user(){
#'''Call /delta for the given user ID and process any changes.'''
// creation d'un client dropbox
include("lib/dropboxAPI.php");
include("../lib/dropboxAPI.php");
$myCustomClient = new dbx\Client($accessToken, $clientIdentifier);
//Articles
$pathPrefix="/Chargements appareil photo/ArticleTdm";
$cursortxt = "lib/cursor.txt";
$cursortxt = "../lib/cursor.txt";
$url="url";
delta($myCustomClient ,$cursortxt, $url, $pathPrefix);
//Challenge
$pathPrefix="/Chargements appareil photo/ChallengeTdm";
$cursortxt = "lib/cursorC.txt";
$cursortxt = "../lib/cursorC.txt";
$url="challenge_update";
delta($myCustomClient , $cursortxt, $url, $pathPrefix);
}
@@ -2,7 +2,7 @@
use \Dropbox as dbx;
function verify(){
echo $_GET['challenge'];
echo htmlspecialchars($_GET['challenge']);
}
function webhook(){

0 comments on commit 2e89019

Please sign in to comment.
You can’t perform that action at this time.