Példák

1. Autentikáció

Curl request

curl --location --request POST 'https://test.com/authorize' \
--header 'Content-Type: application/json' \
--data-raw '{
    "username": "xxxxxxxxxxxxxxx",
    "password": "xxxxxxxxxxxxxxx"
}'

Response

'authorize' => [
    'status' => string 'success'
    'errorCode' => int 0
    'response' => [
   	 'access-token' => string 'xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx'
   	 'serverTime' => int 1683640260
   	 'expirationTime' => int 1683669060
   	 'expires' => int 28800
    ]
    'message' => [
      'notifications' => []
    ]
]

2. Hirdetési státusz és adatvédelmi szöveg lekérdezése

Curl request

curl --location --request GET 'https://test.com/check?jobId=5503' \ 
--header 'Content-Type: application/json' \  
--header 'access-token: xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx' \ 
--data-raw ''

Response

'authorize' => [
    'status' => string 'success'
    'errorCode' => int 0
    'response' => [
   	 'access-token' => string 'xxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxx'
   	 'serverTime' => int 1683640260
   	 'expirationTime' => int 1683669060
   	 'expires' => int 28800
    ]
    'message' => [
      'notifications' => []
    ]
]

3. Jelentkező adatainak átküldése

Curl request

curl --location --request POST 'https://test.com/apply' \ 
--header 'Content-Type: application/json' \ 
--header 'access-token: xxxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxxxx' \ 
--data-raw '{ "jobId": 5503, "name": { "firstname": "Name", "lastname": "Teszt" }, "email": "test@test.com", "phone": "0631234567", "location": "Szeged", "documents": [ { "filename": "cv_de.docx", "content": "xxxxxxxxxxxx", "lang": "276", "type": "270", "date": "2022-05-27" }, { "filename": "cv_en.pdf", "content": "xxxxxxxxxxxxxxxx", "lang": "275", "type": "270", "date": "2022-05-26" }, { "filename": "cv_hu.pdf", "content": "xxxxxxxxxxxxx", "lang": "1577", "type": "270", "date": "2022-05-26" }, { "filename": "other1.pdf", "content": "xxxxxxxxxxxx", "type": "271", "date": "2023-05-09" }, { "filename": "cl_hu.docx", "content": "xxxxxxxxxxxxx", "lang": "1577", "type": "1272", "date": "2023-05-09" } ] }'

Response

'apply' => [
    'status' => string 'success'
    'errorCode' => int 0
    'response' => []
    'message' => [
   	 'notifications' => []
    ]
]

Last updated