Skip to content

Instantly share code, notes, and snippets.

@priore
Created October 25, 2013 23:48
Show Gist options
  • Save priore/7163553 to your computer and use it in GitHub Desktop.
Save priore/7163553 to your computer and use it in GitHub Desktop.
Add a Gift Shop with your personalized images
// With MYZazzleStore service it's really simple to add a gift shop to your application for your users.
// With a few lines of code you can give your users the opportunity to purchase T-shirts personalized
// mugs, iphone / ipad covers and other types of gifts. It also allows you to increase financial gains
// and increase the popularity of your products.
//
// Is really very simple to add to your application a gift shop to offer your users.
// With few lines of code you can give your users the opportunity to purchase T-shirts personalized
// mugs, iphone / ipad cover and other types of gifts, also allowing you to add a further financial
// gain and increasing the popularity of your products.
//
// In this version there is a detailed example of how to use the framework, but just use these
// simple commands, listed below, to get full functionality :
//
// Product IDs
// 0 iphone 3G/3GS covers
// 1 iphone 4/4S cover
// 2 greetings card
// 3 mousepad
// 4 mugs
// 5 pillows
// 6 stickers
// 7 t-shirt for ladies
// 8 t-shirt for man
//
string productID = 1;
string youID = @"1234567"; // optional;
string imageUri = @"http://funnycatwallpapers.com/wp-content/uploads/2012/08/white-bengal-cats.jpg";
string uri = [NSString stringWithFormat:@"http://www.prioregroup.com/services/myzazzlestore.aspx?a=%@&p=@d&i=%@", youID, productID, imageUri];
NSURL *url = [NSURL URLWithString:uri];
[[UIApplication sharedApplication] openURL:url];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment