File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed
Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff 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
5555Initialize the FastPix SDK with your API credentials.
5656
5757``` python
58- from fastpix_python import Client
58+ from fastpix.client import Client
5959
6060client = 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
7272client = Client(username = " your-access-token-id" , password = " your-secret-key" )
7373
Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff line change 55
66setup (
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" ,
2020 long_description_content_type = "text/markdown" ,
2121 author = "FastPix" ,
222223- 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" ,
You can’t perform that action at this time.
0 commit comments