Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  1. If necessary, Authenticate

  2. If necessary, Client Registration

  3. Check if the cardholder exists in CloudCard

    1. Get a Person using findBy=email or findBy=identifier. For example,

      1. https://api.onlinephotosubmission.com/person/jon.doe@foo.edu?findBy=email

      2. https://api.onlinephotosubmission.com/person/A1234567?findBy=identifier

    2. If the cardholder exists the request will return 200 OK. If not, it will return 404 NOT FOUND.

  4. If the cardholder does not exist, create the cardholder.

  5. Create a photo for the cardholder.

  6. Process the photo (separate requests; in order). Use the URL stored in the links.bytes field in the response to retrieve the processed photo.

    1. { "process": "rotate" }

    2. { "process": "crop" }

    3. { "process": "removeBackground" }

    4. { "process": "classify" }

    5. { "process": "sendFeedback" }

  • No labels