Skip to content

Commit 0a8f33c

Browse files
committed
update-project-urls
1 parent 05a90a1 commit 0a8f33c

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ pip install git+https://github.com/FastPix/fastpix_python
4747
### Importing the SDK
4848

4949
```python
50-
from fastpix_python import Client
50+
from fastpix.client import Client
5151
```
5252

5353
### Initialization:
5454

5555
Initialize the FastPix SDK with your API credentials.
5656

5757
```python
58-
from fastpix_python import Client
58+
from fastpix.client import Client
5959

6060
client = Client(username="your-access-token-id", password="your-secret-key")
6161
```
@@ -67,7 +67,7 @@ Below is an example of configuring `FastPix Python SDK` into your project.
6767
`Note:-` For Async SDK Users: When using the AsyncClient, all SDK methods must be prefixed with the await keyword.
6868
```python
6969
# Sync Usage
70-
from fastpix_python import Client
70+
from fastpix.client import Client
7171

7272
client = Client(username="your-access-token-id", password="your-secret-key")
7373

fastpix/client/client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ def _validate_credentials(self):
4949
"""
5050
try:
5151
# Attempt to fetch media to verify credentials
52-
response = self.media.get_all_media()
52+
media_request_params = {
53+
"limit": 10, # Number of media assets to fetch in one request
54+
"offset": 1, # Starting position for the list of media assets
55+
"orderBy": "desc" # Sort order for the media assets
56+
}
57+
58+
response = self.media.get_all_media(params=media_request_params)
5359
return response
5460

5561
except APIError as e:

setup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="fastpix_python",
8-
version="0.1.5",
8+
version="0.1.6",
99
packages=find_packages(),
1010
install_requires=[
1111
"requests>=2.25.0",
@@ -20,7 +20,12 @@
2020
long_description_content_type="text/markdown",
2121
author="FastPix",
2222
author_email="[email protected]",
23-
url="https://github.com/fastpix-io/fastpix-python-server-sdk",
23+
url="https://github.com/FastPix/fastpix-python",
24+
project_urls={
25+
"GitHub": "https://github.com/FastPix/fastpix-python",
26+
"Website": "https://fastpix.io",
27+
"Dashboard": "https://dashboard.fastpix.io",
28+
},
2429
classifiers=[
2530
"Development Status :: 3 - Alpha",
2631
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)