Guest User

Untitled

a guest
Aug 14th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. www/model/Foursquare.php
  2. ...
  3. 36
  4. 37
  5. 38
  6. 39
  7. 40
  8.  
  9.  
  10. 41
  11. 42
  12. 43
  13. ...
  14. 62
  15. 63
  16. 64
  17. 65
  18. 66
  19.  
  20.  
  21.  
  22. 67
  23. 68
  24. 69
  25. ...
  26. 104
  27. 105
  28. 106
  29. 107
  30. 108
  31.  
  32.  
  33. 109
  34. 110
  35. 111
  36. ...
  37. 36
  38. 37
  39. 38
  40.  
  41.  
  42. 39
  43. 40
  44. 41
  45. 42
  46. 43
  47. ...
  48. 62
  49. 63
  50. 64
  51.  
  52.  
  53. 65
  54. 66
  55. 67
  56. 68
  57. 69
  58. 70
  59. ...
  60. 105
  61. 106
  62. 107
  63.  
  64.  
  65. 108
  66. 109
  67. 110
  68. 111
  69. 112
  70. @@ -36,8 +36,8 @@ class Foursquare {
  71. // exit;
  72. }
  73. catch(OAuthException $E) {
  74. - print_r($E);
  75. - exit;
  76. + // print_r($E);
  77. + // exit;
  78. }
  79.  
  80. }
  81. @@ -62,8 +62,9 @@ class Foursquare {
  82. }
  83. catch(OAuthException $E) {
  84. $user->fs_id = 0;
  85. - Auth::requestFoursquareAuthorization();
  86. - exit;
  87. + // Auth::requestFoursquareAuthorization();
  88. + // exit;
  89. + return $checkins;
  90. }
  91. // echo "<br />count:".count($response->checkins)."<br />";
  92.  
  93. @@ -104,8 +105,8 @@ class Foursquare {
  94.  
  95. }
  96. catch(OAuthException $E) {
  97. - print_r($E);
  98. - exit;
  99. + // print_r($E);
  100. + return;
  101. }
  102. $response = json_decode($oauth->getLastResponse());
  103. foreach ($response->categories as $category) {
Add Comment
Please, Sign In to add comment