https://secure.newsedge.com/opensapi/20/internalnews/getsources?session=935DA0B364E9E130F0EC3827FC3CCC9C
<opens-api> <status>OK</status> <sources count="1"> <source code="IW_IntWire1" name="Acquire Media Internal Wire"/> </sources> </opens-api>
The story XML consists of a newsedge container element with two main child elements, the header element and the asset element. The header element contains information about the story, such as the publish-reason, classification codes, and the internal news source code. The asset element contains the story, including the headline, the byline, and the story content.
Remember to ensure special characters are properly stored and displayed, use UTF-8 encoding.
<newsedge version="1.0">
<header>
<publish-reason code="original"/> <!-- required. Use this value for a new story -->
<classification>
<provider-codes> <!-- optional. Use if story is from another provider. -->
<provider-code source="provider-name" code="OrigStoryLink">http://link-to-original-story</provider-code> <!-- optional. Use to include an external link to the read the story. -->
<provider-code source="provider-name" code="OrigSource">News Sourced</provider-code> <!-- optional. Use to show the original publication source for the story. -->
</provider-codes>
</classification>
<source code="IW_IntWire1"></source> <!-- required. Use this value to identify the internal news source code. -->
</header>
<asset>
<newslines>
<headline>US remembers astronauts killed, pledges to reach Mars</headline> <!-- required. Use this element for the story headline. -->
<byline>The Author</byline> <!-- optional. Use to identify the author of the story. -->
</newslines>
<content> <!-- required. Use this element for the story text. -->
The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space travel missions.
</content>
</asset>
</newsedge>
https://secure.newsedge.com/opensapi/20/internalnews/upload?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1&xml=%3Cnewsedge+version%3D%221.0%22%3E%3Cheader%3E%3Cpublish-reason+code%3D%22original%22%2F%3E%3Cclassification%3E%3Cprovider-codes%3E%3Cprovider-code++source%3D%22NEWSEDGE%22+code%3D%22IW_OrigSource%22%3ENews+Sourced%3C%2Fprovider-code%3E%3C%2Fprovider-codes%3E%3C%2Fclassification%3E%3Csource+code%3D%22IW_IntWire1%22%3E%3C%2Fsource%3E%3C%2Fheader%3E%3Casset%3E%3Cnewslines%3E%3Cheadline%3EUS+remembers+astronauts+killed%2C+pledges+to+reach+Mars%3C%2Fheadline%3E%3Cbyline%3EThe+Author%3C%2Fbyline%3E%3C%2Fnewslines%3E%3Ccontent%3EThe+US+space+agency+marks+the+30th+anniversary+Thursday+of+the+explosion+of+the+space+shuttle+Challenger+with+a+pledge+to+remember+lost+astronauts+as+it+presses+on+toward+Mars.+Wreath-laying+ceremonies+were+planned+for+Arlington+National+Cemetery+in+Virginia+and+the+Kennedy+Space+Center+in+Florida+as+NASA+commemorated+the+seven+lives+lost+on+January+28%2C+1986%2C+as+well+as+other+deadly+space+travel+missions.%3C%2Fcontent%3E%3C%2Fasset%3E%3C%2Fnewsedge%3E
<opens-api> <status>OK</status> </opens-api>
https://secure.newsedge.com/opensapi/20/internalnews/getsources?session=935DA0B364E9E130F0EC3827FC3CCC9C
<opens-api> <status>OK</status> <sources count="1"> <source code="IW_IntWire1" name="Acquire Media Internal Wire"/> </sources> </opens-api>
A results list is returned that contains stories represented by multiple result elements. Each result element includes a storyURL sub-element that you use to get the story content.
https://secure.newsedge.com/opensapi/20/internalnews/get?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1
<searchResults searchKey="112131_20170707T161334359"> <search startDate="20170501T000000-0400" endDate="20170707T161434-0400quot; resultsPerPage="20" stem="1" summary="1" metadata="0" taxonomy="0" entity="0" provider-code="0" minimum="0" cluster="0" dedup="0" refine="0" sorting="receiveDate" score="0" highlight="false" relevanceCutOff="85" busRelCutOff="0" includeProvDup="0" includeNRC="" filterLicensedPkg="" filterWebLinkedPkg=""> <queryString>([SRCC:IW_IntWire1])</queryString> </search> <pageInfo>...</pageInfo> <results status="true"> <result score="1.0"> <id> wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ** </id> <storyURL> https://secure.newsedge.com/opensapi/20/news/read?key=A9J3cbyHSqNDNyl1h4ZxowxNP6O-6JFg0hNDalXbJExy8U1CrKrS9nYrZEcD5McLCkEHLfA2NGewXYbrx9BQXAeqUSYdS4dIVDsPTsuBgVvOaf1tYRXSnf2UdVsuMFZsGSlTljLO-FpavDsSGPAfdA** </storyURL> <type code="News"/> <publication-date>20170707T153800-0400</publication-date> <received-date>20170707T153800-0400</received-date> <lastchanged-date>20170707T153800-0400</received-date> <source code="IW_IntWire1" name="Acquire Media Internal Wire" short-name="Acquire Media Internal Wire"> <provider code="ACQMEDIA" name="Acquire Media"> <service code="IW_Custom" name="Custom Content"/> </provider> <topness code="FALSE"/> <media-type code="Text" name="Text"/> <rights code="DELIVERY" name="Delivery Rights"/> </source> <references> </references> <business-relevance>0</business-relevance> <dup>0</dup> <wordcount>66</wordcount> <headline>US remembers astronauts killed, pledges to reach Mars</headline> <byline>The Author</byline> <language code="en"/> <summary> The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space ... </summary> </result> <result score="1.0">...</result> <result score="1.0">...</result> <result score="1.0">...</result> </results> </searchResults>
This example submits the storyURL from the previous step that has the following headline:
<headline>
US remembers astronauts killed, pledges to reach Mars
</headline>
Returned results are XML whose format depends on your agreement with Acquire Media. The results here show Acquire Media's SNiX format. Note the details of the story are in the asset element, in particular, the headline, summary, and content elements.
https://secure.newsedge.com/opensapi/20/news/read?key=A9J3cbyHSqNDNyl1h4ZxowxNP6O-6JFg0hNDalXbJExy8U1CrKrS9nYrZEcD5McLCkEHLfA2NGewXYbrx9BQXAeqUSYdS4dIVDsPTsuBgVvOaf1tYRXSnf2UdVsuMFZsGSlTljLO-FpavDsSGPAfdA**
<newsedge version="1.0"> <header> <id> wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ** </id> <storyURL> https://secure.newsedge.com/opensapi/20/news/read?key=A9J3cbyHSqNDNyl1h4ZxowxNP6O-6JFg0hNDalXbJExy8U1CrKrS9nYrZEcD5McLCkEHLfA2NGewXYbrx9BQXAeqUSYdS4dIVDsPTsuBgVvOaf1tYRXSnf2UdVsuMFZsGSlTljLO-FpavDsSGPAfdA** </storyURL> <publish-reason code="original"/> <type code="News"/> <business-relevance>0</business-relevance> <dup>0</dup> <wordcount>66</wordcount> <publication-date>20170707T153800-0400</publication-date> <user-display-publication-date isotimevalue=""2017-07-07T19:38:00Z">Friday, July 7, 2017, 3:38:00 PM EDT</user-display-publication-date> <received-date>2017-07-07T19:38:00Z</received-date> <user-display-received-date isotimevalue="20170707T153800-0400">Friday, July 7, 2017, 3:38:00 PM EDT</user-display-received-date> <lastchanged-date>20170707T153810-0400</lastchanged-date> <classification> <taxonomies></taxonomies> <entities> <entity-list code="Location"> <entity name="North America"> <property source="xmltag.org" code="loc">LB/nam</property> <property code="fullname">North America</property> <property code="use">primary</property> </entity> <entity name="United States"> <property source="xmltag.org" code="loc">LC/us</property> <property code="fullname">United States</property> <property code="use">primary</property> </entity> <entity name="Americas"> <property source="xmltag.org" code="loc">LR/am</property> <property code="fullname">Americas</property> <property code="use">primary</property> </entity> <entity name="Florida"> <property source="xmltag.org" code="loc">LS/us.fl</property> <property code="fullname">Florida</property> <property code="use">primary</property> </entity> <entity name="Virginia"> <property source="xmltag.org" code="loc">LS/us.va</property> <property code="fullname">Virginia</property> <property code="use">primary</property> </entity> <entity name="Kennedy Space Center"> <property source="xmltag.org" code="loc">LU/us.fl.kenter</property> <property code="fullname">Kennedy Space Center, Florida</property> <property code="use">primary</property> </entity> </entity-list> <entity-list code="Person"> <entity name="The Author"> <property code="use">author</property> </entity> </entity-list> </entities> </classification> <source short-name="Acquire Media Internal Wire" name="Acquire Media Internal Wire" code="IW_IntWire1"> <provider name="Acquire Media" code="ACQMEDIA"> <service name="Custom Content" code="IW_Custom"/> </provider> <topness code="FALSE"/> <media-type name="Text" code="Text"/> <rights name="Delivery Rights" code="DELIVERY"/> </source> <packages></packages> </header> <asset> <newslines> <headline> US remembers astronauts killed, pledges to reach Mars </headline> <byline>The Author</byline> <summary> The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space ... </summary> </newslines> <content> <p> The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for <location>Arlington National Cemetery</location> in <location idsrc="xmltag.org" value="LS/us.va">Virginia</location> and the <location idsrc="xmltag.org" value="LU/us.fl.kenter">Kennedy Space Center</location> in <location idsrc="xmltag.org" value="LS/us.fl">Florida</location> as NASA commemorated the seven lives lost on <chron>January 28, 1986</chron> , as well as other deadly space travel missions. </p> </content> <language code="en"/> <dup-check>ACC1D2</dup-check> </asset> </newsedge>
In this example, submit a request to the internalnews/get api to view the list of uploaded stories and identify the story to be modified.
https://secure.newsedge.com/opensapi/20/internalnews/get?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1
<searchResults searchKey="112131_20170710T110618591">
<search startDate="20170501T000000-0400" endDate="20170710T110718-0400" resultsPerPage="20" stem="1" summary="1" metadata="0" taxonomy="0" entity="0" provider-code="0" minimum="0" cluster="0" dedup="0" refine="0" sorting="receiveDate" score="0" highlight="false" relevanceCutOff="85" busRelCutOff="0" includeProvDup="0" includeNRC="" filterLicensedPkg="" filterWebLinkedPkg="">
<queryString>([SRCC:IW_IntWire1])</queryString>
</search>
<pageInfo>...</pageInfo>
<results status="true">
<result score="1.0">
<id>
wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ**
</id>
<storyURL>
https://secure.newsedge.com/opensapi/20/news/read?key=A9J3cbyHSqNDNyl1h4ZxowxNP6O-6JFg0hNDalXbJExy8U1CrKrS9nYrZEcD5McLCkEHLfA2NGewXYbrx9BQXAeqUSYdS4dIVDsPTsuBgVvOaf1tYRXSnf2UdVsuMFZsGSlTljLO-FpavDsSGPAfdA**
</storyURL>
<type code="News"/>
<publication-date>20170707T153800-0400</publication-date>
<received-date>20170707T153800-0400</received-date>
<lastchanged-date>20170707T153800-0400</received-date>
<source code="IW_IntWire1" name="Acquire Media Internal Wire" short-name="Acquire Media Internal Wire">
<provider code="ACQMEDIA" name="Acquire Media">
<service code="IW_Custom" name="Custom Content"/>
</provider>
<topness code="FALSE"/>
<media-type code="Text" name="Text"/>
<rights code="DELIVERY" name="Delivery Rights"/>
</source>
<references>
</references>
<business-relevance>0</business-relevance>
<dup>0</dup>
<wordcount>66</wordcount>
<headline>US remembers astronauts killed, pledges to reach Mars</headline>
<byline>The Author</byline>
<language code="en"/>
<summary>
The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space ...
</summary>
</result>
<result score="1.0">...</result>
<result score="1.0">...</result>
<result score="1.0">...</result>
</results>
</searchResults>
<newsedge version="1.0">
<header>
<id>wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ**</id>
<publish-reason code="corrected"/>
<classification>
<provider-codes>
<provider-code source="provider-name" code="IW_OrigSource">Space News and Stuff</provider-code>
</provider-codes>
</classification>
<source code="IW_IntWire1"> </source>
</header>
<asset>
<newslines>
<headline>US remembers astronauts killed, pledges to reach Mars by 2050</headline>
<byline>The Author</byline>
</newslines>
<content>The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space travel missions.</content>
</asset>
</newsedge>
https://secure.newsedge.com/opensapi/20/internalnews/upload?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1&xml=%3Cnewsedge+version%3D%221.0%22%3E%0D%0A%3Cheader%3E%0D%0A%3Cid%3EwUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ%2A%2A%3C%2Fid%3E%0D%0A%3Cpublish-reason+code%3D%22corrected%22%2F%3E%0D%0A%3Cclassification%3E%0D%0A%3Cprovider-codes%3E%0D%0A%3Cprovider-code+source%3D%22NEWSEDGE%22+code%3D%22IW_OrigSource%22%3ESpace+News+and+Stuff%3C%2Fprovider-code%3E%3C%2Fprovider-codes%3E%0D%0A%3C%2Fclassification%3E%0D%0A%3Csource+code%3D%22IW_IntWire1%22%3E%3Crights+name%3D%22photo+uploader%22+code%3D%22CLEARED%22%2F%3E%3C%2Fsource%3E%0D%0A%3C%2Fheader%3E%0D%0A%3Casset%3E%0D%0A%3Cnewslines%3E%0D%0A%3Cheadline%3EUS+remembers+astronauts+killed%2C+pledges+to+reach+Mars+by+2050%3C%2Fheadline%3E%0D%0A%3Cbyline%3EThe+Author%3C%2Fbyline%3E%0D%0A%3C%2Fnewslines%3E%0D%0A%3Ccontent%3E%0D%0A%3Cp%3EThe+US+space+agency+marks+the+30th+anniversary+Thursday+of+the+explosion+of+the+space+shuttle+Challenger+with+a+pledge+to+remember+lost+astronauts+as+it+presses+on+toward+Mars.+Wreath-laying+ceremonies+were+planned+for+Arlington+National+Cemetery+in+Virginia+and+the+Kennedy+Space+Center+in+Florida+as+NASA+commemorated+the+seven+lives+lost+on+January+28%2C+1986%2C+as+well+as+other+deadly+space+travel+missions.%3C%2Fp%3E%0D%0A%3C%2Fcontent%3E%0D%0A%3C%2Fasset%3E%0D%0A%3C%2Fnewsedge%3E
<opens-api> <status>OK</status> </opens-api>
https://secure.newsedge.com/opensapi/20/internalnews/get?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1
<searchResults searchKey="112131_20170710T115252159">
<search startDate="20170501T000000-0400" endDate="20170710T115352-0400" resultsPerPage="20" stem="1" summary="1" metadata="0" taxonomy="0" entity="0" provider-code="0" minimum="0" cluster="0" dedup="0" refine="0" sorting="receiveDate" score="0" highlight="false" relevanceCutOff="85" busRelCutOff="0" includeProvDup="0" includeNRC="" filterLicensedPkg="" filterWebLinkedPkg="">...</search>
<pageInfo>...</pageInfo>
<results status="true">
<result score="1.0">
<id>wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ**</id>
<storyURL>https://secure.newsedge.com/opensapi/20/news/read?key=OCNv5-SkQx6lVlOeLNFVCqBuVG4NVSTU287UVjPjgyRUeqQru8Pix44Mc78NSP6bd42LvsYBhHJubEXmZv6vJ6lyBqV-7-f1v-C0TJIjRZjNN38kHK22XIlJZ8SIsv1rjt937pzOLHyoQIJgxpXQ5A**
</storyURL>
<type code="News"/>
<publication-date>20170707T153800-0400</publication-date>
<received-date>20170707T153800-0400</received-date>
<lastchanged-date>20170707T161120-0400</lastchanged-date>
<source code="IW_IntWire1" name="Space News and Stuff via Acquire Media Internal Wire" short-name="Space News and Stuff via Acquire Media Internal Wire">
<provider code="ACQMEDIA" name="Acquire Media">
<service code="IW_Custom" name="Custom Content"/>
</provider>
<topness code="FALSE"/>
<media-type code="Text" name="Text"/>
<rights code="DELIVERY" name="Delivery Rights"/>
</source>
<references>
</references>
<business-relevance>0</business-relevance>
<dup>0</dup>
<wordcount>66</wordcount>
<headline>US remembers astronauts killed, pledges to reach Mars by 2050</headline>
<byline>The Author</byline>
<language code="en"/>
<summary>
The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space ...</summary>
</result>
<result score="1.0">...</result>
<result score="1.0">...</result>
<result score="1.0">...</result>
</results>
</searchResults>
https://secure.newsedge.com/opensapi/20/news/read?key=OCNv5-SkQx6lVlOeLNFVCqBuVG4NVSTU287UVjPjgyRUeqQru8Pix44Mc78NSP6bd42LvsYBhHJubEXmZv6vJ6lyBqV-7-f1v-C0TJIjRZjNN38kHK22XIlJZ8SIsv1rjt937pzOLHyoQIJgxpXQ5A**
<newsedge version="1.0"> <header> <id>wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ**</id><storyURL> https://secure.newsedge.com/opensapi/20/news/read?key=OCNv5-SkQx6lVlOeLNFVCqBuVG4NVSTU287UVjPjgyRUeqQru8Pix44Mc78NSP6bd42LvsYBhHJubEXmZv6vJ6lyBqV-7-f1v-C0TJIjRZjNN38kHK22XIlJZ8SIsv1rjt937pzOLHyoQIJgxpXQ5A**</storyURL> <publish-reason code="corrected"/> <type code="News"/> <business-relevance>0</business-relevance> <dup>0</dup> <wordcount>66</wordcount> <publication-date>20170707T153800-0400</publication-date> <user-display-publication-date isotimevalue="2017-07-07T19:38:00Z">Friday, July 7, 2017, 3:38:00 PM EDT</user-display-publication-date> <received-date>20170707T153800-0400</received-date> <user-display-received-date isotimevalue="2017-07-07T19:38:00Z">Friday, July 7, 2017, 3:38:00 PM EDT</user-display-received-date> <lastchanged-date>20170709T161120-0400</lastchanged-date> <classification> <taxonomies></taxonomies> <entities> <entity-list code="Location"> <entity name="North America"> <property source="xmltag.org" code="loc">LB/nam</property> <property code="fullname">North America</property> <property code="use">primary</property> </entity> <entity name="United States"> <property source="xmltag.org" code="loc">LC/us</property> <property code="fullname">United States</property> <property code="use">primary</property> </entity> <entity name="Americas"> <property source="xmltag.org" code="loc">LR/am</property> <property code="fullname">Americas</property> <property code="use">primary</property> </entity> <entity name="Florida"> <property source="xmltag.org" code="loc">LS/us.fl</property> <property code="fullname">Florida</property> <property code="use">primary</property> </entity> <entity name="Virginia"> <property source="xmltag.org" code="loc">LS/us.va</property> <property code="fullname">Virginia</property> <property code="use">primary</property> </entity> <entity name="Kennedy Space Center"> <property source="xmltag.org" code="loc">LU/us.fl.kenter</property> <property code="fullname">Kennedy Space Center, Florida</property> <property code="use">primary</property> </entity> </entity-list> <entity-list code="Person"> <entity name="The Author"> <property code="use">author</property> </entity> </entity-list> </entities> </classification> <source short-name="Space News and Stuff via Acquire Media Internal Wire" name="Space News and Stuff via Acquire Media Internal Wire" code="IW_IntWire1"> <provider name="Acquire Media" code="ACQMEDIA"> <service name="Custom Content" code="IW_Custom"/> </provider> <topness code="FALSE"/> <media-type name="Text" code="Text"/> <rights name="Delivery Rights" code="DELIVERY"/> </source> <packages></packages> </header> <asset> <newslines> <headline>US remembers astronauts killed, pledges to reach Mars by 2050</headline> <byline>The Author</byline> <summary>The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space ...</summary> </newslines> <content> <p>The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger</p><p>with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for</p> <p><location>Arlington National Cemetery</location> in <location idsrc="xmltag.org" value="LS/us.va">Virginia</location> and the <location idsrc="xmltag.org" value="LU/us.fl.kenter">Kennedy Space Center</location> in <location idsrc="xmltag.org" value="LS/us.fl">Florida</location> as NASA commemorated the seven</p> <p>lives lost on <chron>January 28, 1986</chron>, as well as other deadly space travel missions.</p> </content> <language code="en"/> <dup-check>C6C22A</dup-check> </asset> </newsedge>
Once again, submit a request to the internalnews/get api to view the list of uploaded stories and identify the story to be deleted.
https://secure.newsedge.com/opensapi/20/internalnews/get?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1
<searchResults searchKey="112131_20170710T143451621">
<search startDate="20170501T000000-0400" endDate="20170809T161241-0400quot; resultsPerPage="20" stem="1" summary="1" metadata="0" taxonomy="0" entity="0" provider-code="0" minimum="0" cluster="0" dedup="0" refine="0" sorting="receiveDate" score="0" highlight="false" relevanceCutOff="85" busRelCutOff="0" includeProvDup="0" includeNRC="" filterLicensedPkg="" filterWebLinkedPkg="">
<queryString>([SRCC:IW_IntWire1])</queryString>
</search>
<pageInfo>...</pageInfo>
<results status="true">
<result score="1.0">
<id>
wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ**
</id>
<storyURL>
https://secure.newsedge.com/opensapi/20/news/read?key=4qeZNp73XsVNF09YUb8hxCOQilUnH7Yv4PWF7kpbruXgqlj5JoU9BNH6yHqPmb7Sp0jPxB26cEkIM_3uyXmURxDFzSFgpJaGAS1mNfWKvpWUeCj3OfAQg9J7_tL3Am3V4618TjIJjmDQeD2e9qMNzw**
</storyURL>
<type code="News"/>
<publication-date>20170707T153800-0400</publication-date>
<received-date>20170707T153800-0400</received-date>
<lastchanged-date>20170709T161120-0400</lastchanged-date>
<source code="IW_IntWire1" name="Space News and Stuff via Acquire Media Internal Wire" short-name="Space News and Stuff via Acquire Media Internal Wire">
<provider code="ACQMEDIA" name="Acquire Media">
<service code="IW_Custom" name="Custom Content"/>
</provider>
<topness code="FALSE"/>
<media-type code="Text" name="Text"/>
<rights code="DELIVERY" name="Delivery Rights"/>
</source>
<references>
</references>
<business-relevance>0</business-relevance>
<dup>0</dup>
<wordcount>66</wordcount>
<headline>US remembers astronauts killed, pledges to reach Mars by 2050</headline>
<byline>The Author</byline>
<language code="en"/>
<summary>
The US space agency marks the 30th anniversary Thursday of the explosion of the space shuttle Challenger with a pledge to remember lost astronauts as it presses on toward Mars. Wreath-laying ceremonies were planned for Arlington National Cemetery in Virginia and the Kennedy Space Center in Florida as NASA commemorated the seven lives lost on January 28, 1986, as well as other deadly space ...
</summary>
</result>
<result score="1.0">...</result>
<result score="1.0">...</result>
<result score="1.0">...</result>
</results>
</searchResults>
<newsedge version="1.0">
<header>
<id>wUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ**</id>
<publish-reason code="deleted"/>
<source code="IW_IntWire1"></source> </header>
<asset>
<content></content>
</asset>
</newsedge>
https://secure.newsedge.com/opensapi/20/internalnews/upload?session=935DA0B364E9E130F0EC3827FC3CCC9C&source=IW_IntWire1&xml=%3Cnewsedge+version%3D%221.0%22%3E%0D%0A++%3Cheader%3E%3Cid%3EwUaQSyeDS4hLkKVxO1XUu4cXHin4PNi0La4r40IaLlfYp8Ae2Is99t3vodsvxszQpoPaZNyNv2s6xetdNyEOKQ%2A%2A%3C%2Fid%3E%0D%0A++++%3Cpublish-reason+code%3D%22deleted%22%2F%3E%0D%0A++++%3Csource+code%3D%22IW_IntWire1%22%3E%3C%2Fsource%3E%0D%0A++%3C%2Fheader%3E%0D%0A++%3Casset%3E%0D%0A++++%3Ccontent%3E%3C%2Fcontent%3E%0D%0A++%3C%2Fasset%3E%0D%0A%3C%2Fnewsedge%3E
<opens-api> <status>OK</status> </opens-api>
Use internalnews/getsources to get a list of source categories for internal news. For example, an internal news source might be defined for marketing use and a separate one defined for investor relations use. The returned results for each source include a code attribute in the source element, which you use to identify internal news sources in other internalnews requests. See also api/info where noun=internalnews and verb=getsources.
https://secure.newsedge.com/opensapi/20/internalnews/getsources?session=<<user-token>>
Parameter | Values | Description |
---|---|---|
session | The ID of the OPENS API session. Use the value returned in the user-token element from session/login. |
Parameter | Values | Description |
---|---|---|
json | Default:0 0,1,2 | The json parameter controls the format of the return data. If the parameter is not provided, the data is returned in XML format.
|
The returned results from internalnews/getsources include an opens-api element that contains status and sources sub-elements.
Name | Values | Description |
---|---|---|
status | OK, ERROR | The status of the request.
|
sources | The sources element represents the list of internal news source categories and contains one or more source sub-elements. The count attribute identifies the number of source sub-elements. | |
source | A source identifies a category of news stories. Each source element includes the following attributes:
|
Use internalnews/upload to upload and manage your internal news stories. After a story is uploaded, the system automatically adds to the story Acquire Media's metadata for categories that include company, geography, industry, people, source, and subject. See also api/info where noun=internalnews and verb=upload.
The XML you supply contains both story content and instructions for managing the story in internal news. The following examples show the XML format for adding a new story, updating a story, and deleting a story.
<newsedge version="1.0">
<header>
<publish-reason code="original"/> <!-- use this value for a new story -->
<classification>
<provider-codes> <!-- optional. Use if story is from another provider. -->
<provider-code source="provider-name" code="OrigStoryLink">http://link-to-original-story</provider-code>
<provider-code source="provider-name" code="OrigSource">Story provider name</provider-code>
</provider-codes>
</classification>
<source code="Insert the value of the code attribute of a source element from internalnews/getsources.">
</source>
</header>
<asset>
<newslines>
<headline>The Title</headline>
<byline>The Author</byline> <!-- optional -->
</newslines>
<content>Content including HTML tagging as needed.</content>
</asset>
</newsedge>
<newsedge version="1.0">
<header>
<id>Insert the value of the id attribute of a result element from internalnews/get.</id>
<publish-reason code="corrected"/> <!-- use this value for a modified story -->
<classification>
<provider-codes> <!-- optional. Use if story is from another provider. -->
<provider-code source="provider-name" code="OrigStoryLink">http://link changes</provider-code>
<provider-code source="provider-name" code="OrigSource">Story provider name changes</provider-code>
</provider-codes>
</classification>
<source code="Insert the value of the code attribute of a source element from internalnews/getsources.">
</source>
</header>
<asset>
<newslines>
<headline>Title changes</headline>
<byline>Author changes</byline> <!-- optional -->
</newslines>
<content>Content changes as needed.</content>
</asset>
</newsedge>
<newsedge version="1.0">
<header>
<id>Insert the value of the id attribute of a result element from internalnews/get.</id>
<publish-reason code="deleted"/> <!-- use this value to delete the story -->
<classification>
<provider-codes></provider-codes>
</classification>
<source code="Insert the value of the code attribute of a source element from internalnews/getsources."></source>
</header>
<asset>
<newslines>
<headline></headline>
<byline></byline>
</newslines>
<content>
</content>
</asset>
</newsedge>
https://secure.newsedge.com/opensapi/20/internalnews/upload?session=<<user-token>>&source=<<source-code>>&xml=encoded-xml
Parameter | Values | Description |
---|---|---|
session | The ID of the OPENS API session. Use the value returned in the user-token element from session/login. | |
source | A code representing a source category of internal news stories. Use the code attribute returned in a source element from internalnews/getsources. | |
xml | Encoded XML of the story content and other information required for an internal news story, including HTML tagging as needed. |
Parameter | Values | Description |
---|---|---|
json | Default:0 0,1,2 | The json parameter controls the format of the return data. If the parameter is not provided, the data is returned in XML format.
|
The returned results from internalnews/upload include an opens-api element that contains a status sub-element.
Name | Values | Description |
---|---|---|
status | OK, ERROR | The status of the request.
|
Use internalnews/get to search and retrieve a list of news stories for an internal source. See also api/info where noun=internalnews and verb=get.
https://secure.newsedge.com/opensapi/20/internalnews/get?session=<<user-token>>&source=<<source-code>>[¶meter=value][& . . .]
Parameter | Values | Description |
---|---|---|
session | The ID of the OPENS API session. Use the value returned in the user-token element from session/login. | |
source | A code representing a source of internal news stories. Use the code attribute returned in a source element from internalnews/getsources. |
Parameter | Values | Description |
---|---|---|
json | Default:0 0,1,2 | The json parameter controls the format of the return data. If the parameter is not provided, the data is returned in XML format.
|
metadata | Default:0 0, 1 | Determines whether to show story metadata in the returned results. 0 - Do not show story metadata in the returned results. 1 - Show the story metadata in the returned results. Metadata is returned in the classification element of the returned results. |
minimum | Default:0 0, 1 | Determines how much of the result element to show in the returned results. See the result element for details. |
page | Default:1 1, 2, . . . totalPages | Sets which page of results to return. Use the page parameter in subsequent intern news/get requests in combination with the searchKey parameter to return other pages of results. For example, &page=2 will return the second page of results. To determine how many pages are available, see the returned totalPages element from internalnews/get. See also the resultsPerPage parameter. |
resultsPerPage | Default:20 1, 2, . . . 210 | Sets the number of results on a page returned from internalnews/get. |
searchDate | Default:all all, today, past2days, past7days, past14days, past21days, past30days, past60days, past90days, thisQuarter, past6months, past1year, past2years, past3years, past4years, past5years, past6years, past7years, past8years, past9years | Sets the date range of the search. A story will be included if its received date is within the date range. The searchDate is converted to values for the startDate and endDate elements in the returned results as follows: all - The startDate is set to midnight of January 1, 2007. today - The startDate time is set to midnight of the previous day. past2Days - the startDate is set to midnight of the day before yesterday. past7days - the startDate is set to midnight of the day seven days before today. past14days - the startDate is set to midnight of the day fourteen days before today. past21days - the startDate is set to midnight of the day twenty one days before today. past30days - the startDate is set to midnight of the day thirty days before today. past60days - the startDate is set to midnight of the day sixty days before today. past90days - the startDate is set to midnight of the day ninety days before today. thisQuarter - The startDate for Q1 is midnight January 1, for Q2 it is midnight April 1, for Q3 it is midnight July 1, and for Q4 it is midnight October 1. past6months - the startDate is set to midnight of the day six months before today. past1year - the startDate is set to midnight of the day one year before today. past2years - the startDate is set to midnight of the day two years before today. past3years - the startDate is set to midnight of the day three years before today. past4years - the startDate is set to midnight of the day four years before today. past5years - the startDate is set to midnight of the day five years before today. past6years - the startDate is set to midnight of the day six years before today. past7years - the startDate is set to midnight of the day seven years before today. past8years - the startDate is set to midnight of the day eight years before today. past9years - the startDate is set to midnight of the day nine years before today. |
searchKey | The searchKey identifies an internalnews/get search. Use a previous internalnews/get request to get the value from the searchKey attribute returned in the searchResults element. To view more pages of story results, use the searchKey parameter in combination with the page parameter. | |
summary | Default:1 0, 1 | Determines whether to show the story summary element in the returned results. 0 - Do not include the summary. 1 - Include the summary. |
sort | Default:receiveDate receiveDate, publicationDate, relevance | Sets the order of the returned results. receiveDate - Sort by the date the story is received, from recent to oldest. publicationDate - Sort by the publication date, from recent to oldest. relevance - Sort by how well the story fits the search terms, from highest relevance value to lowest. |
The returned results from internalnews/get are a page of internal news stories contained in a searchResults element, which includes the searchKey attribute that identifies the search for internal stories. Use this value as the searchKey parameter in subsequent internalnews/get requests to get additional pages of results.
The outer container element, which contains the searchKey attribute, and the search, pageInfo and results child elements.
Name | Values | Description |
---|---|---|
searchKey | An attribute that identifies the search. Store this value to use for retrieving subsequent pages of results. | |
search | Contains attributes used to control the the search for internal news. The search element also includes the queryString child element. The attributes include the following: startDate - The start of the date range for this search. The value of the searchDate parameter is converted to the appropriate values for the startDate and endDate attributes, where startDate is earlier than endDate. endDate - The end of the date range for this search. resultsPerPage - The maximum number of result elements returned for the page. This value is set with the resultsPerPage parameter. See also the numberResults element. stem - A value of 1 indicates that the search uses stemming. summary - Indicates whether the story summary element is included in the returned results. This value is set with the summary parameter. 1 - The returned results include the summary element. 0 - The returned results do not include the summary element. metadata - Indicates whether the story metadata is included in the returned results in the classification element. This value is set with the metadata parameter. 0 - The returned results will not include metadata. 1 - The returned results will include the story metadata. taxonomy - A value of 0 indicates that the taxonomy elements are not included within the classification element. entity - A value of 0 indicates that some entities sub-elements are not included in the returned results within the classification element. provider-code - A value of 0 indicates that some provider-code elements are not included within the classification element. minimum - Indicates which child elements are included within the result element. This value is set with the minimum parameter. See also the result element for more details. cluster - A value of 0 indicates that the returned results are not clustered together by parent-child relationships. dedup - A value of 0 indicates that duplicated stories are not removed from the returned results. refine - A value of 0 indicates that the search did not refine the results related to facets. sorting - indicates how the result elements are sorted in the returned results. See the sort parameter for details. score - A value of 0 indicates that the search did not generate a score value for each story. highlight - A value of false indicates that the returned results do not have search terms highlighted. relevanceCutOff - The results are filtered to return those stories that have relevance equal or greater than this value. busRelCutOff - A value of 0 indicates that the returned results are not filtered for business relevance. includeProvDup - A value of 0 indicates that the returned results are not filtered for stories identified as duplicates by the provider. includeNRC - Not relevant. filterLicensedPkg - Not relevant. filterWebLinkedPkg - Not relevant. | |
queryString | The query used to search and return stories for a particular internal news source. The query is created from the source code used in the source parameter. | |
pageInfo | Contains paging information. Use values from the following child elements with the page and resultsPerPage parameters to coordinate getting multiple pages of results from internalnews/get.
| |
results | A container element that is a list of result child elements. Note the numberResults element indicates how many result elements are in this page. The results element includes the status attribute with a value of true if the search completed successfully and false if it did not. See the results table for more details. |
Name | Values | Description |
---|---|---|
totalResults | The number of total stories found in the search. If the totalResults element contains the attribute partialTotal and it is set to true, then the value of totalResults is not complete, and may increase with subsequent news/search calls with this searchKey. | |
totalPages | The number of pages of results available. This value depends on the combination of values in the totalResults element and the resultsPerPage attribute of the search element. | |
resultsPage | The current page of results. This value is set with the page parameter. | |
numberResults | The number of result elements in the current page. This value should be equal to or less than the value of the resultsPerPage attribute of the search element. | |
topResult | The sequential number for the first result on this page. | |
bottomResult | The sequential number for the last result on this page. | |
results | A container element that is a list of result child elements. The results element includes the status attribute with a value of true if the search completed successfully and false if it did not. See the results table for more details. |
Name | Values | Description |
---|---|---|
result | The container element for a specific story, which includes the attribute: score - The relevance score for this story with respect to the search executed. The result child elements depend on the settings of the summary, minimum, and metadata attributes of the search element.
| |
id | This alphanumeric string uniquely identifies this story. It is suitable for a database key. Use this value for the id element within the xml parameter of internalnews/upload. | |
storyURL | This is the URL to follow to read the full story. Note the storyURL uses the news/read api. | |
type | News | The type element for stories uploaded to an internal source is News, where the story is hosted by NewsEdge servers. When the storyURL is followed, the story will be returned, along with associated metadata. Note: If the story XML was submitted with <provider-code source="provider-name" code="OrigStoryLink">http://link-to-site</provider-code>, following the storyURL will return the story along with associated metadata. To get the original story, the caller must follow the item href attribute of the reference of type "pub-source" in the returned story. |
publication-date | YYYYMMDDTHHMMSS-ZZZZ | The date and time the story was published to the internal wire source. |
received-date | YYYYMMDDTHHMMSS-ZZZZ | The date and time the story was received by the NewsEdge system. |
lastchanged-date | YYYYMMDDTHHMMSS-ZZZZ | The date and time the story was last modified in the system. Visible only if the attribute minimum="0" for the search element. |
source | The source element contains the name, short-name and code attributes. The name attribute is the Acquire Media full name for the publication. The short-name attribute is the text that should be displayed to the user as the source of the story. The code attribute can be used as a search term. The source element contains the child element provider. The provider element for the internal news source is always Acquire Media. The provider element contains the child service element. The service element for the internal news source is always Custom Content. The source element also contains source classification data as child elements: topness, media-type and rights. | |
provider | Acquire Media | Identifies Acquire Media as the internal news source provider. The provider element includes the following attributes: code - An identifier of a provider. name - The name of the provider. The provider element includes a service child element. |
service | Custom Content | Identifies the Custom Content service from provider Acquire Media. This element includes the following attributes: code - An identifier of a service. name - The name of the service. |
topness | TRUE, FALSE | The NewsEdge content team deems this source to be extremely influential with high editorial value. Visible only if the attribute minimum="0" for the search element. |
media-type | text | Identifies the type of media the story source is, such as text. Visible only if the attribute minimum="0" for the search element. The media-type element includes the following attributes: code - An identifier of a media type. name - The name of the media type. |
rights | The rights element describes licensing rights. Visible only if the attribute minimum="0" for the search element. The rights element includes the following attributes: code - An identifier of the type of rights. name - The name of the type of rights. | |
references | The references element may contain zero or more reference elements. This element contains a summary of every external reference that is related to this file. Visible only if the attribute minimum="0" for the search element. | |
reference | A reference element contains an url to information related to the story. If the reference type attribute is "pub-source", then the item href points to the full version of the story. If the reference type attribute is "associated-media", it indicates the item child element with required attribute href points to an image, video, audio, or other media file that is related to the story. The item child element has optional child elements to describe relevant details of the file. The item child elements are: mime-type - defines the format of the file in standard IANA MIME content types. file-size-octets - defines the size of the referenced file in number of 8-bit bytes. height-pixels - defines the native height in pixels of the referenced picture or movie. width-pixels - defines the native width in pixels of the referenced picture or movie. | |
business-relevance | 0-99 | A measure of the relevance of the story's content to business as opposed to non-business content. Visible only if the attribute minimum="0" for the search element. |
dup | 0, 1 | Indicates if the story is a duplicate. Visible only if the attribute minimum="0" for the search element. 0 - The story is not a duplicate. 1 - The story is a duplicate. |
wordcount | The number of words in the story's content. Visible only if the attribute minimum="0" for the search element. | |
headline | This is the headline of the story. | |
byline | The author(s) of this story. This element is optional. Visible only if the attribute minimum="0" for the search element. | |
language | The language code assigned to stories uploaded to this internal news source. Visible only if the attribute minimum="0" for the search element. The language element includes a code attribute to identify the language. This code attribute is the two-letter ISO 639-1 language code. | |
dup-check | An Acquire Media generated value used to identify duplicate stories. Visible only if the attribute metadata="1" for the search element. | |
cluster-signature | An Acquire Media generated set of story elements that can be used for grouping similar stories. Visible only if the attribute metadata="1" for the search element. Includes the following child elements, acorn, noun and hdl-noun, which may be used to group similar stories. | |
acorn | The ACquire media ORganizational Number for an organization. It is always a 10 digit number. Visible only if the attribute metadata="1" for the search element. | |
noun | Nouns extracted from the story text. Visible only if the attribute metadata="1" for the search element. | |
hdl-noun | Nouns extracted from the headline text. Visible only if the attribute metadata="1" for the search element. | |
cluster-id | An Acquire Media generated identifier that can be used for grouping similar stories. Visible only if the attribute metadata="1" for the search element. | |
summary | This is an abstract, summation or the lead of the story. | |
classification | The classification element contains the taxonomies and entities elements. Visible only if the attribute metadata="1" for the search element. The taxonomies element contains the industry and subject taxonomic nodes that apply to this story. The entities element contains the location, company and people entity-lists that apply to this story. |