allegro / allegro/allegro-api

[NEWS] GET /me - dodaliśmy email i NIP w odpowiedzi / GET /me - we added email and tax ID in response

未關閉
#3,228 2 則留言 0 個 reaction 已指派 1 人 已被 @PrzemyslawLukanowski 認領 在 GitHub 檢視
News
主要語言
沒有語言資料
星號
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。