Perhaps I missed it some where but is there some documentation on how to use this module?

We are very interested in this module because we have multiple sites representing a biological image repositories and need unique identifiers between sites. I played around with the module a little, but wondering how to achieve certain things.

For example:
We have an Image node whereby a user uploads and image with some information pertaining to that image. During the submission process of the node form, I wrote some custom functions after the node is saved to process the image to a remote image server. I first grab the image info using:

$image_info[$fid] = file_load($fid);

I am then going to send the image to our scripts on the remote image server using CURL for processing. I would like to use the UUID for the image... or is it better to use the node UUID?... for naming the image on the remote image server.

So how do I obtain the UUID for the file or node?
I assume I can then use the UUID later using the services?
I would just like some ideas or documentation to help me a long the way.

Thank you

Comments

davidcsonka’s picture

Yes, where is the documentation for this module?

I'm using the latest build and it doesn't seem to be working at all, but I have no clue because there is no examples demonstrating what proper functioning looks like.

jaypark’s picture

to generate a UUID, string of 32 hex and 4 hyphens, like 0603cde8-9d30-439e-821e-6de934c80bfc:
uuid.inc::uuid_generate()

all the other code is there to use the UUIDs with drupal objects.

bloke_zero’s picture

Can you use it to retrieve node? I've tried [endpoint]/node/[uuid] without success.

bloke_zero’s picture

Ok, works fine with the 7.x-1.x-dev version.

skwashd’s picture

Issue summary: View changes
Status: Active » Fixed

I think the answers here answer the questions posed by the OP. Please reopen if I got this wrong.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.