SHARE
TWEET

Untitled

a guest Jan 24th, 2020 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function createToken()
  2. {
  3.     1. curl sa iei tokenul
  4.     2. il storezi in cache/cookie
  5. }
  6.  
  7. function getData($token, $page)
  8. {
  9.     // Faci curl pe $page + $token
  10. }
  11.  
  12. function getAnunturi($token, $page)
  13. {
  14.     return getData($token, $page);
  15. }
  16.  
  17. function getAnunt($token, $page, $data = ['id' => 1123])
  18. {
  19.     return getData($token, $page.'/'.$data['id'];
  20. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top