example updated with new clientSecrets, wrapper now returns php array instead of JSON