Oh wow thank you that's exactly what I was looking for! I'll get stuck in tomorrow and see what I can do with it.
nostr:npub1r0d8u8mnj6769500nypnm28a9hpk9qg8jr0ehe30tygr3wuhcnvs4rfsft
You must specify the public key in hex format. And you must also specify the correct json.
Oh wow thank you that's exactly what I was looking for! I'll get stuck in tomorrow and see what I can do with it.
Also, wow 
It worked! 