Skip to content

Instantly share code, notes, and snippets.

@fnbk
Last active August 29, 2015 14:19
Show Gist options
  • Save fnbk/7b845fc28ef74d67df51 to your computer and use it in GitHub Desktop.
Save fnbk/7b845fc28ef74d67df51 to your computer and use it in GitHub Desktop.
#!/bin/sh
curl \
--silent \
--verbose \
--include \
--http1.1 \
--request POST \
--header "Content-Type: text/xml; charset=utf-8; SOAPAction: \"http://service.smartadserver.com/PutInsertionOnline\";" \
--data @- \
http://service.smartadserver.com/v29/service.asmx <<EOF
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<AuthHeader xmlns="http://service.smartadserver.com/">
<UserName>username</UserName>
<Password>password</Password>
</AuthHeader>
</soap:Header>
<soap:Body>
<PutInsertionOnline xmlns="http://service.smartadserver.com/">
<Insertion>
<Id>1</Id>
<StartDate>2015-04-14T14:00:59</StartDate>
<EndDate>2015-04-14T14:01:59</EndDate>
<CampaignID>3339115</CampaignID>
<Name>tvib</Name>
<Status>1</Status>
<Booked>1</Booked>
<BookedClics>1</BookedClics>
<VoiceShare>1</VoiceShare>
<CapingInsertion>1</CapingInsertion>
<CapingInsertionVisite>1</CapingInsertionVisite>
<Priority>1</Priority>
<FormatID>1</FormatID>
<StopNet>false</StopNet>
<ExternalID>1</ExternalID>
<Killed>false</Killed>
<ExternalDescription>1</ExternalDescription>
<Description>1</Description>
<SiteIds>
<int>1</int>
</SiteIds>
<PageIds>
<int>1</int>
</PageIds>
<PackIds>
<int>1</int>
</PackIds>
<AlentyTime>1</AlentyTime>
<Mobile>false</Mobile>
<CappingTempo>1</CappingTempo>
<DelaiCappingTempo>1</DelaiCappingTempo>
<CappingGroupID>1</CappingGroupID>
<InsertionTypeID>1</InsertionTypeID>
<CreationDate>2015-04-14T14:00:59</CreationDate>
<LastModificationDate>2015-04-14T14:00:59</LastModificationDate>
</Insertion>
</PutInsertionOnline>
</soap:Body>
</soap:Envelope>
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment