This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://yiftee.com/yiftee_api.js"></script> | |
<!-- call yiftee api with parameters--> | |
<script type="text/javascript"> | |
sendGift({ | |
api_token: "9eb346a265092b53zgh4bcd238708fd63", | |
sender_name : "Greg", | |
recipient_name : "Aldo", | |
recipient_email : "aldo@yiftee.com", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String url = "https://yiftee.com/api/v1/gifts/send.html?"; | |
String * params = @"api_key=9eb346a265092b53zgh4bcd238708fd63&sender_name=Donna&recipient_name=Aldo&recipient_email=aldo@yiftee.com"; | |
WebView webView = (WebView) findViewById(R.id.webview); | |
WebSettings webSettings = webView.getSettings(); | |
webSettings.setJavaScriptEnabled(true); | |
webview.loadUrl(url + params); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString * url = @"https://yiftee.com/api/v1/gifts/send.html?"; | |
NSString * params = @"api_key=9eb346a265092b53zgh4bcd238708fd63&sender_name=Donna&recipient_name=Aldo&recipient_email=aldo@yiftee.com"; | |
NSURL *urlforWebView = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@", url, params]]; | |
NSURLRequest * urlRequest = [NSURLRequest requestWithURL:urlforWebView]; | |
[webView loadRequest:urlRequest]; |