Permalink
Browse files

update payment and

  • Loading branch information...
1 parent c02057b commit e901f79f765224e9421fd13f8dc4f8bb1aba8b1e attdevsupport committed Jul 27, 2012
Showing with 414 additions and 585 deletions.
  1. +5 −2 MMS/Java/app3/README.txt
  2. +2 −1 MMS/Java/app3/config.jsp
  3. +7 −0 MMS/Java/app3/getImageData.jsp
  4. +9 −4 MMS/PHP/app1/README.txt
  5. +9 −4 MMS/PHP/app2/README.txt
  6. +0 −1 MMS/PHP/app3/MoMessages/mmslistner.db
  7. +9 −4 MMS/PHP/app3/README.txt
  8. +1 −1 MMS/PHP/app3/config.php
  9. +7 −0 MMS/PHP/app3/filed.php
  10. +15 −7 MMS/PHP/app3/index.php
  11. +1 −1 MMS/PHP/app3/mmslistener.php
  12. +1 −1 MMS/Ruby/app3/README
  13. +1 −282 MMS/Ruby/app3/mms3.rb
  14. +11 −4 Notary/Java/app1/OauthStorage.jsp
  15. +11 −5 Notary/Java/app1/README.txt
  16. +7 −0 Notary/Java/app1/config.jsp
  17. +7 −0 Notary/Java/app1/notary.jsp
  18. +2 −0 Notary/Ruby/app1/notary.rb
  19. +22 −31 Notary/Ruby/app1/views/notary.erb
  20. +6 −6 Payment/Java/app1/OauthStorage.jsp
  21. +6 −6 Payment/Java/app1/config.jsp
  22. +23 −7 Payment/Java/app1/getToken.jsp
  23. +7 −0 Payment/Java/app1/listener.jsp
  24. +6 −6 Payment/Java/app1/notary.jsp
  25. +7 −0 Payment/Java/app1/singlepay.jsp
  26. +6 −6 Payment/Java/app2/OauthStorage.jsp
  27. +1 −1 Payment/Java/app2/README.txt
  28. +6 −6 Payment/Java/app2/config.jsp
  29. +20 −11 Payment/Java/app2/getToken.jsp
  30. +6 −6 Payment/Java/app2/notary.jsp
  31. +6 −6 Payment/Java/app2/paymentlistener.jsp
  32. +6 −6 Payment/Java/app2/subscription.jsp
  33. +4 −4 Payment/PHP/app1/singlepay.php
  34. +4 −2 Payment/Ruby/app1/README
  35. +1 −2 Payment/Ruby/app1/configNotary.yml
  36. +3 −0 Payment/Ruby/app1/views/app1.erb
  37. +71 −72 Payment/Ruby/app1/views/notary.erb
  38. +3 −2 Payment/Ruby/app2/README
  39. +8 −8 Payment/Ruby/app2/app2.rb
  40. +1 −1 Payment/Ruby/app2/configNotary.yml
  41. +6 −3 Payment/Ruby/app2/views/app2.erb
  42. +70 −72 Payment/Ruby/app2/views/notary.erb
  43. +10 −4 TL/Ruby/app1/README
View
@@ -74,9 +74,12 @@ Please populate the following parameters in config.jsp as specified below:
2) clientSecretAut : {set the value as per your registered appliaction 'Secret key' field value}
-3) FQDN : https://api.att.com
+3) shortCode1 : short-code 1
+
+4) shortCode2 : short-code 2
+
+5) FQDN : https://api.att.com
-4) shortCode1 : short-code 1
Note: If your application is promoted from Sandbox environment to Production environment and you decide to use production
application settings, you must update parameters 1-2 as per production application details.
View
@@ -7,7 +7,8 @@ For more information contact developer.support@att.com
<%
String clientIdAut = "";
+String clientSecretAut = "";
String shortCode1 = "";
String shortCode2 = "";
String FQDN = "https://api.att.com";
-%>
+%>
@@ -1,3 +1,10 @@
+<%
+//Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
+//TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
+//Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
+//For more information contact developer.support@att.com
+%>
+
<%@ page contentType="application/json" language="java" %><%@ page import="java.io.*" %><%@ page import="java.util.Arrays" %><%@ page import="java.util.Collections" %><%@ page import="java.util.Comparator" %><%@ include file="config.jsp" %><%
String senderAddress = "";
String date = "";
View
@@ -1,8 +1,13 @@
-
- AT&T API Samples - MMS app1
+******************************************************************************************
+* Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
+* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
+* Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
+* For more information contact developer.support@att.com<mailto:developer.support@att.com>
+******************************************************************************************
+ AT&T API Platform Samples - MMS app1
-----------------------------
-This file describes how to set up, configure and run the php versions of the AT&T HTML5 Program sample applications.
+This file describes how to set up, configure and run the php versions of the AT&T API Platform sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.
@@ -25,7 +30,7 @@ create and run one's own full-fledged sample applications.
users to when he/she successfully authenticates and authorizes your application.
Having your application registered, you will get back an important pair of data: an API key and Secret key. They are
- necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use
+ necessary to get your applications working with the AT&T Platform APIs. See 'Adjusting parameters' below to learn how to use
these keys.
Initially your newly registered application is restricted to the "Sandbox" environment only. To move it to production,
View
@@ -1,8 +1,13 @@
-
- AT&T API Samples - MMS app2
+******************************************************************************************
+* Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
+* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
+* Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
+* For more information contact developer.support@att.com<mailto:developer.support@att.com>
+******************************************************************************************
+ AT&T API Platform Samples - MMS app2
----------------------------------------
-This file describes how to set up, configure and run the php versions of the AT&T HTML5 Program sample applications.
+This file describes how to set up, configure and run the php versions of the AT&T API Platform Program sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.
@@ -27,7 +32,7 @@ create and run one's own full-fledged sample applications.
NOTE: You MUST select MMS in the list of services under field 'Services' in order to use this sample application code.
Having your application registered, you will get back an important pair of data: an API key and Secret key. They are
- necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use
+ necessary to get your applications working with the AT&T Platform APIs. See 'Adjusting parameters' below to learn how to use
these keys.
Initially your newly registered application is restricted to the "Sandbox" environment only. To move it to production,
@@ -1 +0,0 @@
-a:9:{i:0;a:5:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:2:"id";i:0;s:5:"image";s:14:"0/IMG_2500.png";s:4:"text";s:15:"0/text_0002.txt";}i:1;a:5:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:2:"id";i:1;s:5:"image";s:14:"1/IMG_2500.png";s:4:"text";s:15:"1/text_0002.txt";}i:2;a:5:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:2:"id";i:2;s:5:"image";s:14:"2/IMG_2500.png";s:4:"text";s:15:"2/text_0002.txt";}i:3;a:5:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:2:"id";i:3;s:5:"image";s:14:"3/IMG_2500.png";s:4:"text";s:15:"3/text_0002.txt";}i:4;a:5:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:2:"id";i:4;s:5:"image";s:14:"4/IMG_2500.png";s:4:"text";s:15:"4/text_0002.txt";}i:5;a:5:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:2:"id";i:5;s:5:"image";s:14:"5/IMG_2500.png";s:4:"text";s:15:"5/text_0002.txt";}i:6;a:6:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:4:"date";s:27:"Wed Dec 7 11:23:57 EST 2011";s:2:"id";i:6;s:5:"image";s:14:"6/IMG_2500.png";s:4:"text";s:15:"6/text_0002.txt";}i:7;a:6:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:4:"date";s:27:"Wed Dec 7 11:23:58 EST 2011";s:2:"id";i:7;s:5:"image";s:14:"7/IMG_2500.png";s:4:"text";s:15:"7/text_0002.txt";}i:8;a:6:{s:7:"address";s:12:"+18588228604";s:7:"subject";s:0:"";s:4:"date";s:27:"Wed Dec 7 11:23:59 EST 2011";s:2:"id";i:8;s:5:"image";s:14:"8/IMG_2500.png";s:4:"text";s:15:"8/text_0002.txt";}}
View
@@ -1,8 +1,13 @@
-
- AT&T API Samples - MMS app3
+******************************************************************************************
+* Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
+* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
+* Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
+* For more information contact developer.support@att.com<mailto:developer.support@att.com>
+******************************************************************************************
+ AT&T API Platform Samples - MMS app3
-----------------------------
-This file describes how to set up, configure and run the php versions of the AT&T HTML5 Program sample applications.
+This file describes how to set up, configure and run the php versions of the AT&T API Platform Program sample applications.
It covers all steps required to register the application on DevConnect and, based on the generated API keys and secrets,
create and run one's own full-fledged sample applications.
@@ -25,7 +30,7 @@ create and run one's own full-fledged sample applications.
users to when he/she successfully authenticates and authorizes your application.
Having your application registered, you will get back an important pair of data: an API key and Secret key. They are
- necessary to get your applications working with the AT&T HTML5 APIs. See 'Adjusting parameters' below to learn how to use
+ necessary to get your applications working with the AT&T Platform APIs. See 'Adjusting parameters' below to learn how to use
these keys.
Initially your newly registered application is restricted to the "Sandbox" environment only. To move it to production,
View
@@ -1,5 +1,5 @@
<!--
-Licensed by AT&T under 'Software Development Kit Tools Agreement.'June 2012
+Licensed by AT&T under 'Software Development Kit Tools Agreement.' 2012
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
For more information contact developer.support@att.com
View
@@ -1,3 +1,10 @@
+<!--
+Licensed by AT&T under 'Software Development Kit Tools Agreement.'2012
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
+Copyright 2012 AT&T Intellectual Property. All rights reserved. http://developer.att.com
+For more information contact developer.support@att.com
+-->
+
<?php
$file_cont = file_get_contents( "/tmp/sample MMS delivery.txt");
View
@@ -49,13 +49,6 @@
</div>
</div>
-
-<br />
-<br />
-<p>Photos sent to short code <?php echo $short_code; ?>:</p>
-
-<div id="gallerywrapper">
-
<?php
$path_is = __FILE__;
$folder = dirname($path_is);
@@ -67,11 +60,26 @@
}
$db_filename = $folder . "/". "mmslistner.db";
$messages = unserialize(file_get_contents($db_filename));
+$count = 0;
+foreach ( $messages as $message ){
+$count = $count + 1;
+}
+?>
+<br />
+<br />
+<p>Photos sent to short code <?php echo $short_code; ?>:<?php echo $count; ?></p>
+
+<div id="gallerywrapper">
+<?php
+$db_filename = $folder . "/". "mmslistner.db";
+$messages = unserialize(file_get_contents($db_filename));
+$count = 0;
foreach ( $messages as $message ){
$message_txt = file_get_contents( $folder.'/'.$message["text"]);
$message_image = "MoMessages/".$message['image'];
$address = $message['address'];
+$count = $count + 1;
?>
<div id="gallery"><img src="<?php echo $message_image ; ?>" width="150" border="0" /><br /><strong>Sent from:</strong> <?php echo $address; ?> <br /><strong>On:</strong> <?php echo $message['date']; ?><div><?php echo $message_txt; ?></div></div>
@@ -1,5 +1,5 @@
<!--
-Licensed by AT&T under 'Software Development Kit Tools Agreement.' September 2011
+Licensed by AT&T under 'Software Development Kit Tools Agreement.'2012
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION: http://developer.att.com/sdk_agreement/
Copyright 2011 AT&T Intellectual Property. All rights reserved. http://developer.att.com
For more information contact developer.support@att.com
View
@@ -5,7 +5,7 @@
* For more information contact developer.support@att.com<mailto:developer.support@att.com>
******************************************************************************************
- AT&T API Samples - MMS app 3
+ AT&T API Platform Samples - MMS app 3
------------------------------
This file describes how to set up, configure and run the Ruby applications using AT&T API Platform services.
Oops, something went wrong.

0 comments on commit e901f79

Please sign in to comment.