From 4c857079fc7a5987fd6993a2fde019c3c65f1321 Mon Sep 17 00:00:00 2001 From: mgp25 Date: Wed, 23 Sep 2015 09:23:25 +0200 Subject: [PATCH] timestamp fix Fixes #212 --- src/snapchat.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/snapchat.php b/src/snapchat.php index b658708..0e924a3 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -988,7 +988,6 @@ public function sendMessage($tos, $text) } if(count($messagesArray) <= 0) return null; $messages = json_encode($messagesArray); - $timestamp = parent::timestamp(); $result = parent::post( '/loq/conversation_post_messages', array( @@ -2547,8 +2546,8 @@ public function deleteStory($storyId) '/bq/delete_story', array( 'story_id' => $storyId, - 'username' => $this->username, - 'timestamp' => $timestamp + 'username' => $this->username, + 'timestamp' => $timestamp ), array( $this->auth_token,