[NEWS] GET /me - dodaliśmy email i NIP w odpowiedzi / GET /me - we added email and tax ID in response
- 主要語言
- 沒有語言資料
- 星號
- 244
- 分支
- 40
- PR 合併指標
- 30 天內沒有已合併 PR
描述
W odpowiedzi na wasze sugestie, dodaliśmy dwa nowe pola w odpowiedzi dla [GET /me](https://developer.allegro.pl/documentation/#operation/meGET):
- email,
- NIP (‘company.taxId’).
Za pomocą [GET /me ](https://developer.allegro.pl/documentation/#operation/meGET)pobierzesz dane użytkownika, którego token przesyłasz w requeście.
**Przykładowy request:**
```
curl -X GET
‘https://api.allegro.pl/me’
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Przykładowy response:**
```
{
"id": "12345678",
"login": "example_login",
"firstName": "Jan",
"lastName": "Nowak",
"email": "example_login@allegro.pl",
"company": {
"name": "Allegro.pl",
"taxId": "525-267-47-98"
}
}
```
------
In response to your suggestions, we have introduced two new fields for [GET /me](https://developer.allegro.pl/documentation/#operation/meGET):
- email,
- company.taxId.
Via [GET /me](https://developer.allegro.pl/documentation/#operation/meGET) you can retrieve user data, whose token is sent in the request.
**Sample request:**
```
curl -X GET
‘https://api.allegro.pl/me’
-H 'Accept: application/vnd.allegro.public.v1+json'
```
**Sample response:**
```
{
"id": "12345678",
"login": "example_login",
"firstName": "Jan",
"lastName": "Nowak",
"email": "example_login@allegro.pl",
"company": {
"name": "Allegro.pl",
"taxId": "525-267-47-98"
}
}
```
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。