Is it possible to get the bucket and file endpoint url thru the api?
Not sure what you mean?
I want to know the public url of a bucket or file:
For example: https://s3-eu-west-1.amazonaws.com/dzazadazdzadzadazdza/figure8.png
It doesn't do that. Why not just use parse_url()? http://php.net/parse_url
I create a bucket or file via the api.
And ofter that i want to know the url thru the api.
Because i can set the region of a bucket (us, eu, …) the url of a file or bucket is different.
The AWS php supports http://docs.amazonwebservices.com/AmazonS3/latest/API/index.html?RESTBucketPUTwebsite.html
You could use getBucketLocation() to retrieve a bucket's location. But it would be better to just keep track of which regions buckets are created in.