| Latest discussions |
|---|
|
mettre des photos dans les guestbook ou commentaires
Updated 6 months ago |
|
Wordpress widget
Updated 12 months ago 4 replies |
|
Ipernity::API 0.09 has been released
Updated 16 months ago |
|
objectiveC api kit for iOS ?
Updated 18 months ago |
|
Lightroom export plugin?
Updated 19 months ago 14 replies |
|
Ipernity::API 0.07 released
Updated 19 months ago |
|
IperBackup - a script to backup your Ipernity account
Updated 20 months ago |
|
Statistiko
Updated 23 months ago 1 reply |
|
I added my first application "LiquidAlbums"
Updated 2 years ago |
|
Problems with authorize method
Updated 2 years ago 1 reply |
| ... view all the discussions |
|
Static URLsposted by Stefan JenknerPosted on Thursday November 13rd, 2008 at 19:14. 530 visits. ( permalink ) |
You must be logged on to post a reply. Sign in now?
Latest comments
–
Subscribe to the comment feed for this topic.
Dirk pro says:
My documents: www.ipernity.com/doc/dirk
A picture: www.ipernity.com/doc/dirk/3167581
The Thumbnail: u1.ipernity.com/9/75/81/3167581.f888942d.100.jpg
And the same picture if i do an api call:
ipernity.com/doc/19181/3167581
Why is there only the user ID instead of the user name?
And what does “9/75/81” stand for? I guess, “3167581.f888942d” is unique. Why not create a functionality to “wrap” this complicated …
u1.ipernity.com/9/75/81/3167581.f888942d.100.jpg
… to somewhat more easy to recognize like …
www.ipernity.com/doc/dirk/3167581/100
yes, URLs are a bit complicate but we always provide full URLs to avoid questions like "why are urls complicated" LOL
In fact, it's complicate because we use up to 4 different secrets to protect document sizes and medias.
For instance a photo has :
- 1 secret for 75x, 100, 240, 500, 560 sizes
- 1 secret for the 1024
- 1 secret for the original
Most API methods accept the parameter
thumbsizeto return the desired thumbsize.For your personal understanding let's analyse u1.ipernity.com/9/75/81/3167581.f888942d.100.jpg :
u1 : the URL server
9 : the RAID volume
75/81 : the last 4 digits of the document ID, used as the directory hash.
3167581 : the document ID
f888942d : the secret
100 : the size
and Yes Dirk, we could provide simpler URLs, but who really cares when you get them already constructed with the API? And even if you like to construct them yourself you can not guess the exact dimensions.
We will definitly make a documentation about this.
Dirk pro replies:
Thanks for your explaination!
Stefan Jenkner replies:
Using this information I just wrote a Template-filter for Django:
www.djangosnippets.org/snippets/1193