@@ -21,7 +21,7 @@ class Notifications extends AbstractApi
2121 */
2222 public function all (array $ params = array ())
2323 {
24- return $ this ->get ('notifications ' , $ params );
24+ return $ this ->get ('/ notifications ' , $ params );
2525 }
2626
2727 /**
@@ -37,7 +37,7 @@ public function all(array $params = array())
3737 */
3838 public function allInRepository ($ username , $ repository , array $ params = array ())
3939 {
40- return $ this ->get ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
40+ return $ this ->get ('/ repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
4141 }
4242
4343 /**
@@ -51,7 +51,7 @@ public function allInRepository($username, $repository, array $params = array())
5151 */
5252 public function markAsReadAll (array $ params = array ())
5353 {
54- return $ this ->put ('notifications ' , $ params );
54+ return $ this ->put ('/ notifications ' , $ params );
5555 }
5656
5757 /**
@@ -67,7 +67,7 @@ public function markAsReadAll(array $params = array())
6767 */
6868 public function markAsReadInRepository ($ username , $ repository , array $ params = array ())
6969 {
70- return $ this ->put ('repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
70+ return $ this ->put ('/ repos/ ' .rawurlencode ($ username ).'/ ' .rawurlencode ($ repository ).'/notifications ' , $ params );
7171 }
7272
7373 /**
@@ -82,7 +82,7 @@ public function markAsReadInRepository($username, $repository, array $params = a
8282 */
8383 public function markAsRead ($ id , array $ params )
8484 {
85- return $ this ->patch ('notifications/threads/ ' .rawurlencode ($ id ), $ params );
85+ return $ this ->patch ('/ notifications/threads/ ' .rawurlencode ($ id ), $ params );
8686 }
8787
8888 /**
@@ -96,7 +96,7 @@ public function markAsRead($id, array $params)
9696 */
9797 public function show ($ id )
9898 {
99- return $ this ->get ('notifications/threads/ ' .rawurlencode ($ id ));
99+ return $ this ->get ('/ notifications/threads/ ' .rawurlencode ($ id ));
100100 }
101101
102102 /**
@@ -110,7 +110,7 @@ public function show($id)
110110 */
111111 public function showSubscription ($ id )
112112 {
113- return $ this ->get ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
113+ return $ this ->get ('/ notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
114114 }
115115
116116 /**
@@ -125,7 +125,7 @@ public function showSubscription($id)
125125 */
126126 public function createSubscription ($ id , array $ params )
127127 {
128- return $ this ->put ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' , $ params );
128+ return $ this ->put ('/ notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' , $ params );
129129 }
130130
131131 /**
@@ -139,6 +139,6 @@ public function createSubscription($id, array $params)
139139 */
140140 public function removeSubscription ($ id )
141141 {
142- return $ this ->delete ('notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
142+ return $ this ->delete ('/ notifications/threads/ ' .rawurlencode ($ id ).'/subscription ' );
143143 }
144144}
0 commit comments