Skip to content

Instantly share code, notes, and snippets.

View cwalkersp's full-sized avatar

Chris Russell-Walker cwalkersp

  • Single Platform
  • New York, NY
View GitHub Profile
<html>
<head>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
</head>
<body>
<div id="iframe-container"></div>
<!-- Assuming we have jQuery - easy to do without though -->
<script type="text/javascript">
var iframe,
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<div id="iframe-container"></div>
<!-- Assuming we have jQuery - easy to do without though -->
<script type="text/javascript">
$(document).ready(function() {
var container = $('#iframe-container');
import base64
import hashlib
import hmac
from urllib import urlencode
HOSTNAME = 'http://publishing-api.singleplatform.com'
SIGNING_KEY='YOUR_SIGNING_KEY'
CLIENT_ID='YOUR_CLIENT_ID'
Commands.requestUpdate(formData, function submitRequestSuccess(data) {
gaTrack('Success', 'Successful Update Submittal');
if ($scope.useAsForm) {
if ($scope.submitClaimedUrl) {
submitClaimed();
}
$window.location.assign($scope.formSuccessUrl);
} else if (!$scope.formSuccessUrl) { /* ADDED LINE */
$scope.modalBody = 'Your update request is being processed and you should see your changes on publishers within 24-48 hours.';
$scope.showOkButton = true;