get photo login API