API:Redirects/Sample code 1