ChiefDucky
ChiefDucky
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
but then oncce i actually do the search/metadata it doesn't work
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
No description
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
until i put in more query?
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
like expected
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
is this norma?
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
Hey bro
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
No description
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
ah this is how you send codes
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
def get_latest_images():
headers = {
'Authorization': f'Bearer {access_token}'
}
params = {
'size': 10, # Number of images to fetch
'type': 'IMAGE',
'order': 'desc'
}
response = requests.post(f'{immich_server_url}/api/search/smart', headers=headers, json=params)
if response.status_code == 200:
return response.json().get('items', [])
else:
st.error('Failed to fetch images')
return []
def get_latest_images():
headers = {
'Authorization': f'Bearer {access_token}'
}
params = {
'size': 10, # Number of images to fetch
'type': 'IMAGE',
'order': 'desc'
}
response = requests.post(f'{immich_server_url}/api/search/smart', headers=headers, json=params)
if response.status_code == 200:
return response.json().get('items', [])
else:
st.error('Failed to fetch images')
return []
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
i'm super lost right
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
how do i send a request
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
this is my python script
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
but let's say
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
sorry brother
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
api_key1 = get_key_by_name(conn,'immich') Immich server details immich_server_url = 'http://100.85.11.26:2283/api/search/metadata' access_token = api_key1 Function to get the latest images def get_latest_images(): headers = { 'Authorization': f'Bearer {access_token}' } params = { 'size': 10, # Number of images to fetch 'type': 'IMAGE', 'order': 'desc' } response = requests.post(f'{immich_server_url}/api/search/smart', headers=headers, json=params) if response.status_code == 200: return response.json().get('items', []) else: st.error('Failed to fetch images') return []
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
oh so thumbnail is the full resolution?
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
aha
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
then how does one get the image?
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
like would it response me a text?
55 replies
IImmich
Created by ChiefDucky on 7/25/2024 in #help-desk-support
How do I do an API call and get the images like google photo's service?
what is the return of this?
55 replies