WIP: Provide email in info_hash if available
- Requests verifications from the globaliD
/attestations
endpoint - Looks for email in
"public_data"
(unstable — may not be available there)
@sethherr NB: Unless there's a way to derive the email from the verifications response, this work is blocked on globaliD responding with the email address. (or is there another endpoint we should be requesting it from?)
https://developer.global.id/documentation/0204-verifications.html
# /attestations response
=> [
[0] {
"attestee" => "jmromer",
"attestee_signature" => "...",
"attestee_signed_at" => "2019-09-29T00:46:13.000Z",
"attestee_uuid" => "...",
"attestor" => "mandrill",
"attestor_signature" => "...",
"attestor_signed_at" => "2019-09-29T00:45:59.000Z",
"data_hash" => "...",
"public_attestor_note" => "",
"public_data" => "",
"related_attestations" => "",
"revocation_time" => nil,
"sig_version" => 2,
"tracking_id" => "...",
"type" => "email",
"uuid" => "...",
"created_at" => "2019-09-29T00:46:16.000Z",
"updated_at" => "2019-09-29T00:46:16.000Z",
"app_uuid" => "..."
},
# ...