pinarkive-sdk 2.1.45__py3-none-any.whl → 2.1.46__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pinarkive_client.py +1 -6
- {pinarkive_sdk-2.1.45.dist-info → pinarkive_sdk-2.1.46.dist-info}/METADATA +2 -2
- pinarkive_sdk-2.1.46.dist-info/RECORD +5 -0
- pinarkive_sdk-2.1.45.dist-info/RECORD +0 -5
- {pinarkive_sdk-2.1.45.dist-info → pinarkive_sdk-2.1.46.dist-info}/WHEEL +0 -0
- {pinarkive_sdk-2.1.45.dist-info → pinarkive_sdk-2.1.46.dist-info}/top_level.txt +0 -0
pinarkive_client.py
CHANGED
@@ -14,7 +14,7 @@ class PinarkiveClient:
|
|
14
14
|
if self.token:
|
15
15
|
headers['Authorization'] = f'Bearer {self.token}'
|
16
16
|
elif self.api_key:
|
17
|
-
headers['
|
17
|
+
headers['Authorization'] = f'Bearer {self.api_key}'
|
18
18
|
return headers
|
19
19
|
|
20
20
|
# --- Authentication ---
|
@@ -218,11 +218,6 @@ class PinarkiveClient:
|
|
218
218
|
headers=self._headers()
|
219
219
|
)
|
220
220
|
|
221
|
-
def delete_upload(self, cid: str) -> Any:
|
222
|
-
return self.session.delete(
|
223
|
-
f'{self.base_url}/users/me/uploads/{cid}',
|
224
|
-
headers=self._headers()
|
225
|
-
)
|
226
221
|
|
227
222
|
def get_referrals(self) -> Any:
|
228
223
|
return self.session.get(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pinarkive-sdk
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.46
|
4
4
|
Summary: Python SDK for the Pinarkive API v2.1 - Easy IPFS file management with directory DAG uploads, file renaming, and enhanced API key management. Includes type hints for better IDE support.
|
5
5
|
Author: ITCS VIP, Joel_da
|
6
6
|
License: MIT
|
@@ -47,6 +47,7 @@ The SDK supports two authentication methods:
|
|
47
47
|
```python
|
48
48
|
client = PinarkiveClient(api_key="your-api-key-here")
|
49
49
|
```
|
50
|
+
**Note:** The SDK automatically sends the API key using the `Authorization: Bearer` header format, not `X-API-Key`.
|
50
51
|
|
51
52
|
### JWT Token Authentication
|
52
53
|
```python
|
@@ -339,7 +340,6 @@ PinarkiveClient(token: Optional[str] = None, api_key: Optional[str] = None, base
|
|
339
340
|
- `get_profile()` - Get user profile
|
340
341
|
- `update_profile(data: Dict[str, Any])` - Update user profile
|
341
342
|
- `list_uploads(page: int = 1, limit: int = 10)` - List uploaded files
|
342
|
-
- `delete_upload(cid: str)` - Delete uploaded file
|
343
343
|
- `get_referrals()` - Get referral information
|
344
344
|
|
345
345
|
### Token Management
|
@@ -0,0 +1,5 @@
|
|
1
|
+
pinarkive_client.py,sha256=okSNK0lkdjHCSC0cq6gDuxhq3sdAljNqCrX1ld7k1IY,9512
|
2
|
+
pinarkive_sdk-2.1.46.dist-info/METADATA,sha256=XnQn4i-BfVlMi-h1ThDERk4dpxg7hdsZznBT63Nl3jA,13885
|
3
|
+
pinarkive_sdk-2.1.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
4
|
+
pinarkive_sdk-2.1.46.dist-info/top_level.txt,sha256=kTyDY8vHnwgnB2cDHiBBLTnXN0-u2nD71SsSdVIC8bI,17
|
5
|
+
pinarkive_sdk-2.1.46.dist-info/RECORD,,
|
@@ -1,5 +0,0 @@
|
|
1
|
-
pinarkive_client.py,sha256=7d86cYR6MdE3y9vIdfIDZUpphpN_CMqxjgAIQOdCdn0,9684
|
2
|
-
pinarkive_sdk-2.1.45.dist-info/METADATA,sha256=UkAX-9plPVhLy-e_1WXIP70ZtL0ucr_6SltMC4QAs5s,13820
|
3
|
-
pinarkive_sdk-2.1.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
4
|
-
pinarkive_sdk-2.1.45.dist-info/top_level.txt,sha256=kTyDY8vHnwgnB2cDHiBBLTnXN0-u2nD71SsSdVIC8bI,17
|
5
|
-
pinarkive_sdk-2.1.45.dist-info/RECORD,,
|
File without changes
|
File without changes
|