Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createToken()
- {
- 1. curl sa iei tokenul
- 2. il storezi in cache/cookie
- }
- function getData($token, $page)
- {
- // Faci curl pe $page + $token
- }
- function getAnunturi($token, $page)
- {
- return getData($token, $page);
- }
- function getAnunt($token, $page, $data = ['id' => 1123])
- {
- return getData($token, $page.'/'.$data['id'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement