Alerts are email messages that contain saved search results. To setup and activate an alert requires the following steps:
https://secure.newsedge.com/opensapi/20/alert/create?session=935DA0B364E9E130F0EC3827FC3CCC9C&name=Drug%20Trials&subject=Drug%20Trials%20Alert
<opens-api> <message>Alert 34729 created</message> </opens-api>
https://secure.newsedge.com/opensapi/20/alert/list?session=935DA0B364E9E130F0EC3827FC3CCC9C
<opens-api> <alerts> <alert id="34729" name="Drug Trials" status="Inactive"/> </alerts> </opens-api>
To get details about an alert, use alert/info with the required parameters session and alert. In the returned results, notice the first three sub-elements of the alert element, which need to be filled in using the following API requests:
Use alert/update to add or update the other alert information.
https://secure.newsedge.com/opensapi/20/alert/info?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api> <alerts> <alert id="34729" name="Drug Trials" status="Inactive"> <alertSchedule></alertSchedule> <alertSearches></alertSearches> <additionalDestinations></additionalDestinations> <alertSubject>Drug Trials Alert</alertSubject> <alertComment/> <emailContents value="briefs"/> <tocLocation value="top"/> <lastExecTime value="19700101T000000+0000"/> <maxResults value="50"/> <maxStories value="50"/> <maxTotalStories value="500"/> <enableHighlighting/> </alert> </alerts> </opens-api>
You schedule alerts for specific days of the week with specific times for those days using alert/addschedule. The request requires the parameters session, alert, and days, with additional parameters to set the times. You can set two types of time schedules:
This example sets a schedule for Monday, Wednesday, and Friday at the set time of 5:15PM.
You can add multiple schedules as needed. To delete a schedule use alert/deleteschedule.
https://secure.newsedge.com/opensapi/20/alert/addschedule?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729&days=Monday,Wednesday,Friday&type=settime&setTime=171500
<opens-api> <message>Schedule 3411 added to alert 34729 for user 32594</message> </opens-api>
https://secure.newsedge.com/opensapi/20/savedsearch/list?session=935DA0B364E9E130F0EC3827FC3CCC9C
<opens-api> <status>OK</status> <savedsearches> <savedsearch ss="6762" owner="NewsEdge.com" level="SYSTEM" name="NewsEdge" permission="OPAQUE"/> <savedsearch ss="13818" owner="API User" level="PERSONAL" name="Pharmaceutical Development" permission="WRITE"/> <savedsearch ss="6761" owner="NewsEdge.com" level="SYSTEM" name="Pharmaceuticals Industry" permission="OPAQUE"/> . . . </savedsearches> </opens-api>
To add the saved search obtained from the previous step, use alert/addsearch with the required session, alert, and savedSearch parameters.
You can add multiple searches to an alert if desired. To delete a search from an alert use alert/deletesearch.
https://secure.newsedge.com/opensapi/20/alert/addsearch?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729&savedSearch=13818
<opens-api> <message>Search 13818 added to alert 34729 for user 32594</message> </opens-api>
Use alert/adddestination to add an email address destination for the alert. The required parameters include the session identifier, the alert identifier, an emailAddress, and an emailFormat, which can have the value HTML, smartphone, text, mobile, or Webalert.
You can add more email destinations to the alert as needed. To delete an email from an alert use alert/deletesearch.
https://secure.newsedge.com/opensapi/20/alert/adddestination?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert34729&emailAddress=name@example.com&emailFormat=HTML
<opens-api> <message>Destination name@example.com, format HTML added to alert 34729 for user 32594</message> </opens-api>
https://secure.newsedge.com/opensapi/20/alert/activate?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api> <message>Alert 34729 for user 32594 activated</message> </opens-api>
Use alert/info with the session and alert parameters to get all the details about the alert.
See the next step for how to add or modify the other alert values.
https://secure.newsedge.com/opensapi/20/alert/info?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api> <alerts> <alert id="34729" name="Drug Trials" status="Active"> <alertSchedule> <dayOfWeek scheduleId="3411" number="3,5"> <setTime>T171500-0400</setTime> </dayOfWeek> </alertSchedule> <alertSearches> <alertSearch id="13818" name="Pharmaceutical Development"/> </alertSearches> <additionalDestinations> <destination type="email" format="HTML">name@example.com</destination> </additionalDestinations> <alertSubject>Drug Trials Alert</alertSubject> <alertComment/> <emailContents value="briefs"/> <tocLocation value="top"/> <lastExecTime value="19700101T000000+0000"/> <maxResults value="50"/> <maxStories value="50"/> <maxTotalStories value="500"/> <enableHighlighting/> </alert> </alerts> </opens-api>
Modify an alert's settings using alert/update with the required parameters session and alert, plus any of the parameters in the following table. The left column contains an attribute or element shown in the results of the previous step. The right column indicates the alert/update parameter to use to change the value:
Attribute or Element | The alert/update Parameter to Use |
---|---|
alert name attribute | Use the parameter name to change the alert's name. |
alertSubject element | Use the parameter subject to set or change the email subject line. |
alertComment element | Use the parameter comment to add a text comment to the top of the email. |
emailContents value attribute | Use the parameter contents=briefs to include headlines and a brief description of the story in the email or use contents=headlines to show only headlines. |
tocLocation value attribute | Use the parameter tocLocation=top to add a table of contents to the top of the email. |
maxResults value attribute | Use the parameter maxResultsPerSearch to set the maximum number of results for each search included in the alert. |
maxStories value attribute | Use the parameter maxStoriesPerEmailto set the maximum number of stories to include in an alert email message. |
maxTotalStories value attribute | Use the parameter maxStoriesPerAlert to set the maximum total number of saved search results to be emailed for the alert. |
enableHighlighting element | Use the parameter highlighting=TRUE to highlight search terms in the email results. |
https://secure.newsedge.com/opensapi/20/alert/update?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729&highlighting=TRUE
<opens-api> <message>Alert 34729 updated</message> </opens-api>
https://secure.newsedge.com/opensapi/20/alert/deactivate?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api> <message>Alert 34729 for user 32594 deactivated</message> </opens-api>
https://secure.newsedge.com/opensapi/20/alert/list?session=935DA0B364E9E130F0EC3827FC3CCC9C
<opens-api> <alerts> <alert id="34729" name="Drug Trials" status="Inactive"/> </alerts> </opens-api>
To schedule an alert to be sent periodically throughout the day, use the alert/addschedule request with the required parameters session, alert, days, and the following additional parameters to set the periodic times:
https://secure.newsedge.com/opensapi/20/alert/addschedule?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729&days=1,2,3,4,5&type=period&startTime=090000&endTime=153000&periodInSeconds=900
<opens-api> <message>Schedule 3413 added to alert 34729 for user 32594</message> </opens-api>
https://secure.newsedge.com/opensapi/20/alert/info?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api>
<alerts>
<alert id="34729" name="Drug Trials" status="Active">
<alertSchedule>
<dayOfWeek scheduleId="3411" number="3,5">
<setTime>T171500-0400</setTime>
</dayOfWeek>
<dayOfWeek scheduleId="3413" number="1,2,3,4,5">
<startTime>T090000-0400</startTime>
<endTime>T153000-0400</endTime>
<period>PT15M</period>
</dayOfWeek>
</alertSchedule>
<alertSearches>
<alertSearch id="13818" name="Pharmaceutical Development"/>
</alertSearches>
<additionalDestinations>
<destination type="email" format="HTML">name@example.com</destination>
</additionalDestinations>
<alertSubject>Drug Trials Alert</alertSubject>
<alertComment/>
<emailContents value="briefs"/>
<tocLocation value="top"/>
<lastExecTime value="19700101T000000+0000"/>
<maxResults value="50"/>
<maxStories value="50"/>
<maxTotalStories value="500"/>
<enableHighlighting/>
</alert>
</alerts>
</opens-api>
https://secure.newsedge.com/opensapi/20/alert/activate?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api> <message>Alert 34729 for user 32594 activated</message> </opens-api>
https://secure.newsedge.com/opensapi/20/alert/deactivate?session=935DA0B364E9E130F0EC3827FC3CCC9C&alert=34729
<opens-api> <message>Alert 34729 for user 32594 deactivated</message> </opens-api>
Use alert/create to create an alert that sends email notifications containing stories from a saved search. See also api/info where noun=alert and verb=create. Do the following steps after you create an alert:
https://secure.newsedge.com/opensapi/20/alert/create?session=<<user-token>>&name=<<alert-name>>[¶meter=value][& . . .]
Parameter | Values | Description |
---|---|---|
name | A name for the alert. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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.
|
comment | Introductory text added to the beginning of the email message. | |
contents | Default:briefs headlines, briefs | Sets what type of story content the alert is to include.
|
highlighting | Default:false true, false | Sets whether the search terms of the saved search are to be highlighted in the alert's email message.
|
maxResultsPerSearch | Default:50 1, 2, . . ., 50 | Sets the maximum number of results per saved search to include in the alert each time it executes. To control the number of stories and emails an alert sends, coordinate together the values for the parameters maxStoriesPerAlert, maxResultsPerSearch, and maxStoriesPerEmail. |
maxStoriesPerEmail | Default:100 1, 2, . . ., 100 | Sets the maximum number of search results included in an alert email message. Note that multiple emails may be sent each time an alert executes, depending on the value of maxStoriesPerAlert and the total number of stories specified in maxResultsPerSearch. To control the number of stories and emails an alert sends, coordinate together the values for the parameters maxStoriesPerAlert, maxResultsPerSearch, and maxStoriesPerEmail. |
maxStoriesPerAlert | Default:500 1, 2, . . ., 500 | Sets the maximum number of stories sent each time the alert executes. When an alert executes, the search results contain a list of stories up to the number of maxResultsPerSearch. Then an email is sent containing a list of stories up to the number of maxStoriesPerEmail. However, if all the stories could not be included in the first email, additional emails are sent for the alert up to the number of maxStoriesPerAlert. For example, if maxResultsPerSearch=50, and maxStoriesPerEmail=25, you might set maxStoriesPerAlert=50 or greater, to ensure all the stories in the current alert search results are included. To control the number of stories and emails an alert sends, coordinate together the values for the parameters maxStoriesPerAlert, maxResultsPerSearch, and maxStoriesPerEmail. |
subject | The text for the email subject line. | |
tocLocation | Default:top top, none |
|
The returned results include an opens-api element with a single message child-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert was created and includes the alert ID. For example: <message>Alert 34729 created</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/list to get a list of alerts. See also api/info where noun=alert and verb=list.
https://secure.newsedge.com/opensapi/20/alert/list?session=<<user-token>>
Parameter | Values | Description |
---|---|---|
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with an alerts sub-element.
Name | Values | Description |
---|---|---|
alerts | The alerts element represents the list of alerts with one or more alert sub-elements. | |
alert | Represents an alert and includes the following attributes:
|
Use alert/info to get alert information including the alert ID, the alert's activation status, which saved searches it uses, and details about when and where the alert will execute. See also api/info where noun=alert and verb=info.
https://secure.newsedge.com/opensapi/20/alert/info?session=<<user-token>>&alert=<<alert-id>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with an alerts sub-element.
Name | Values | Description |
---|---|---|
alerts | The list of alerts, each of which is represented by an alert sub-element. | |
alert | This represents an alert and includes the following attributes:
The alert element also contains the following sub-elements:
| |
alertSchedule | An alert's list of schedules, each of which is represented by a dayOfWeek sub-element. Schedules are added to alerts using alert/addschedule, and removed from alerts using alert/deleteschedule. | |
dayOfWeek | 1, 2, 3, 4, 5, 6, 7 | A dayOfWeek element represents when the alert executes. A dayOfWeek element contains the following attributes to represent the days the alert is scheduled to execute:
A dayOfWeek element also contains sub-elements to represent the times the alert is scheduled to execute. See also the type parameter of alert/addschedule.
|
setTime | Thhmmss-hhmm | Indicates a specific time of the day the alert will execute. Time is in hours minutes and seconds with an offset from Greenwich Mean Time. |
startTime | Thhmmss-hhmm | Indicates the time when this periodic alert is scheduled to start for the day. |
endTime | Thhmmss-hhmm | Indicates the time after which no more periodic alerts are sent for the day. |
period | PTmmM | Indicates the time in minutes between the executions of periodic alerts during a day. |
alertSearches | A list representing an alert's saved searches, each of which is represented by an alertSearch sub-element. Saved searches are added to alerts using alert/addsearch. | |
alertSearch | A source of stories for the alert. An alertSearch element represents a saved search with the following attributes:
| |
additionalDestinations | A list of alert destinations, where each destination is represented by a destination sub-element. Destinations are added to alerts using alert/adddestination. | |
destination | An email address where the alert is sent. The destination element also includes the following attributes:
| |
alertSubject | Text of the alert's email subject line. See also the subject parameter of alert/update or alert/create. | |
alertComment | Optional additional text added to the beginning of the alert's email message. See also the comment parameter of alert/update or alert/create. | |
emailContents | briefs, headlines | The type of story content the alert email is to include. Valid values include:
See also the contents parameter of alert/update or alert/create. |
tocLocation | top, none | Indicates whether the alert email has a table of contents:
See also the tocLocation parameter of alert/update or alert/create. |
lastExecTime | YYYYMMDDTHHMMSS-ZZZZ | Indicates the last time the alert executed. This is the receive date of the most recent story sent in the alert email. This value is used by the system to determine how far back the next alert will start the search for new stories. See also the timeRangeInMinutes parameter of alert/addschedule to set a different time for the alert search to use. If the value is 19700101T000000+0000, it means the alert has not yet been executed. |
maxResults | 1, 2, . . .,50 | Indicates the maximum number of results for each alertSearch to be sent each time the alert executes. See also the maxStoriesPerAlert parameter of alert/update or alert/create. When an alert executes, the search results contain a list of stories up to the number of the maxResults element. Then an email is sent containing a list of stories up to the number of maxStories element. However, if all the stories could not be included in the first email, additional emails are sent for the alert up to the number of maxTotalStories element. |
maxStories | 1, 2, . . .,100 | Indicates the maximum number of search results included in an email message. See also the maxStoriesPerEmail parameter of alert/update or alert/create. Note that multiple emails may be sent each time an alert executes, depending on the value of the maxResults element and the total number of stories specified in maxTotalStories. |
maxTotalStories | 1, 2, . . .,500 | Indicates the maximum number of stories to be included in the alert. See also the maxStoriesPerAlert parameter of alert/update or alert/create. |
enableHighlighting | Y, or empty tag | Indicates if the search terms in the alert's email message are to be highlighted. See also the highlighting parameter of alert/update or alert/create. |
Use alert/update to change or add settings for an existing alert. See also api/info where noun=alert and verb=update.
https://secure.newsedge.com/opensapi/20/alert/update?session=<<user-token>>&alert=<<alert-id>>[¶meter=value][& . . .]
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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.
|
comment | Adds or changes introductory text at the beginning of the email message. | |
contents | headlines, briefs | Resets what type of story content the alert is to include.
|
highlighting | true, false | Resets whether the search terms of the saved search are to be highlighted in the alert's email message.
|
maxResultsPerSearch | 1, 2, . . ., 50 | Resets the maximum number of results per saved search to include in the alert each time it executes. To control the number of stories and emails an alert sends, coordinate together the values for the parameters maxStoriesPerAlert, maxResultsPerSearch, and maxStoriesPerEmail. |
maxStoriesPerEmail | 1, 2, . . ., 100 | Resets the maximum number of search results included in an alert email message. Note that multiple emails may be sent each time an alert executes, depending on the value of the maxEmailsPerAlert parameter and the total number of stories specified in the maxResultsPerSearch parameter. To control the number of stories and emails an alert sends, coordinate together the values for the parameters maxStoriesPerAlert, maxResultsPerSearch, and maxStoriesPerEmail. |
maxStoriesPerAlert | 1, 2, . . ., 500 | Resets the maximum number of stories sent each time the alert executes. When an alert executes, the search results contain a list of stories up to the number of the maxResultsPerSearch parameter. Then an email is sent containing a list of stories up to the number of the maxStoriesPerEmail parameter. However, if all the stories could not be included in the first email, additional emails are sent for the alert up to the number of maxStoriesPerAlert parameter. For example, if maxResultsPerSearch=50, and maxStoriesPerEmail=25, you might set maxEmailsPerAlert=2 or greater, to ensure all the stories in the current alert search results are included. To control the number of stories and emails an alert sends, coordinate together the values for the parameters maxStoriesPerAlert, maxResultsPerSearch, and maxStoriesPerEmail. |
name | Changes the name of the alert. | |
subject | Changes or adds text for the email subject line. | |
tocLocation | top, none |
|
The returned results include an opens-api element with a single message child-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert updated and includes the alert ID. For example: <message>Alert 34729 updated</message> If an error occurs the text message contains an explanation of the error. |
Use alert/adddestination to add one, or up to 6, email addresses where alert emails are to be sent. See also api/info where noun=alert and verb=adddestination.
https://secure.newsedge.com/opensapi/20/alert/adddestination?session=<<user-token>>&alert=<<alert-id>>&emailAddress=<<address>>&emailFormat=<<format>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. | |
emailAddress | email address format | An email address to which the alert email is to be sent. The format is: name@my-company.com |
emailFormat | HTML, smartphone, text, mobile, Webalert | The format of the body of the email message. Valid values include:
|
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the destination and format was added to the alert for the current user and includes the destination email address, the email format type, the alert ID, and the user ID. For example: <message>Destination name@my-company.com, format HTML added to alert 34729 for user 32594</message> If an error occurs, the text message contains an explanation of the error. e.g. the email address is not submitted with the proper for amt. <message>Invalid email address: name@my-companycom</message> |
Use alert/addschedule to set the days and times when an alert is to be sent. See also api/info where noun=alert and verb=addschedule . Alerts are scheduled for one or more days of the week using the days parameter, then the time of day can be scheduled in two ways:
https://secure.newsedge.com/opensapi/20/alert/addschedule?session=<<user-token>>&alert=<<alert-id>>&days=<<day-list>>&type=settime&setTime=<<hhmmss>>[&timeRangeInMinutes=<<minutes>>]
https://secure.newsedge.com/opensapi/20/alert/addschedule?session=<<user-token>>&alert=<<alert-id>>&days=<<day-list>>&type=period&startTime=<<hhmmss>>&endTime=<<hhmmss>>&periodInSeconds=<<seconds>>[&timeRangeInMinutes=<<minutes>>]
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. | |
days | 1,2,3,4,5,6,7 Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday all weekdays | Specifies the days of the week to send the alert, where each number represents a different day. Specify more than one day by separating the numbers with commas.
For example: 1,3,5 specifies an alert is to be sent Monday, Wednesday and Friday. For Monday through Friday, set value as weekdays. For seven days per week, set value as all. |
type | period, settime | The type of schedule used to send the alert.
|
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.
|
endTime | hhmmss | Required only if parameter type=period . Sets the time when periodic alerts end for the day. For example, if endTime=170000 , no alerts would be sent past 5:00:00 PM. The first alert for the day begins at the time set by the startTime parameter. Alerts then occur periodically based on the value of the periodInSeconds parameter until the time set in the endTime parameter occurs. |
periodInSeconds | 900, . . . | Required only if parameter type=period . Sets the amount of time in seconds between periodic alerts. Lowest value is 900. For example, if periodInSeconds=900 and startTime=080000 , then the alert would first be sent at 8:00:00 AM and every 15 minutes (900 seconds) thereafter until the endTime occurs. |
setTime | hhmmss | Required only if parameter type=settime . Sets a specific time of day for an alert to be sent. For example, if setTime=164500 , then the alert is sent at 4:45:00 PM. |
startTime | hhmmss | Required only if parameter type=period . Sets the time when periodic alerts start for the day. The first periodic alert is sent at the startTime . Thereafter, alerts are sent periodically based on the value of the periodInSeconds parameter until the time set in the endTime parameter occurs. |
timeRangeInMinutes | 1, 2, . . . | Specifies the number of minutes the alert's searches will look back from the time the alert is sent. By default, an alert will look back for stories to its last execution time. See the value attribute of the alert/info lastExecTime element. Use timeRangeInMinutes if you want to use a different timeframe. |
The returned results include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert is scheduled for the current user and includes the schedule ID, alert ID, and user ID. For example: <message>Schedule 3349 added to alert 34729 for user 32594</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/addsearch to add a saved search to an alert. An alert can have more than one saved search associated with it. See also api/info where noun=alert and verb=addsearch.
https://secure.newsedge.com/opensapi/20/alert/addsearch?session=<<user-token>>&alert=<<alert-id>>&savedSearch=<<ss-ID>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
savedSearch | A saved search identifier. Use the value of the savedsearch element's ss attribute from a savedsearch/list request or the original savedsearch/create request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the search was added to the alert for the current user and includes the saved search ID, the alert ID, and the user ID. For example: <message>Search 13691 added to alert 34729 for user 32594</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/activate to enable an alert to start sending email messages. See also api/info where noun=alert and verb=activate. The following requests are prerequisites before an alert/activate request:
https://secure.newsedge.com/opensapi/20/alert/activate?session=<<user-token>>&alert=<<alert-id>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert is activated for the current user and includes the alert ID and the user ID. For example: <message>Alert 34729 for user 32594 activated</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/deletedestination to delete an email address from the alert. See also api/info where noun=alert and verb=deletedestination.
https://secure.newsedge.com/opensapi/20/alert/deletedestination?session=<<user-token>>&alert=<<alert-id>>&emailAddress=<<address>>&emailFormat=<<format>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. | |
emailAddress | email address format | An email address to be deleted. Use the value of a destination element returned from an alert/info request. |
emailFormat | HTML, smartphone, text, mobile, Webalert | The email format for the email address being deleted. Use the value of the format attribute from the same destination element you used for the emailAddress parameter. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the email destination and format were deleted from the alert for the current user and includes the destination email address, the email format type, the alert ID, and the user ID. For example: <message>Destination name@my-company.com, format HTML deleted from alert 34729 for user 32594</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/deleteschedule to delete a schedule of days and times when an alert is sent. See also api/info where noun=alert and verb=deleteschedule.
https://secure.newsedge.com/opensapi/20/alert/deleteschedule?session=<<user-token>>&alert=<<alert-id>>&schedule=<<scheduleId>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
schedule | A schedule identifier. Use the value of the dayOfWeek element's scheduleId attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert's schedule is deleted for the current user and includes the schedule ID, alert ID, and user ID. For example: <message>Schedule 3349 deleted from alert 34729 for user 32594</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/deletesearch to delete a saved search from an alert. See also api/info where noun=alert and verb=deletesearch.
https://secure.newsedge.com/opensapi/20/alert/deletesearch?session=<<user-token>>&alert=<<alert-id>>&savedSearch=<<alertSearch-id>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
savedSearch | A saved search identifier. Use the value of the alertSearch element's id attribute from an alert/info request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the search was deleted from the alert for the current user and includes the saved search ID, the alert ID, and the user ID. For example: <message>Search 13691 deleted from alert 34729 for user 32594</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/deactivate to disable an alert from sending email messages. See also api/info where noun=alert and verb=deactivate.
https://secure.newsedge.com/opensapi/20/alert/deactivate?session=<<user-token>>&alert=<<alert-id>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert is deactivated for the current user and includes the alert ID and the user ID. For example: <message>Alert 34729 for user 32594 deactivated</message> If an error occurs, the text message contains an explanation of the error. |
Use alert/delete to delete an existing alert. See also api/info where noun=alert and verb=delete.
https://secure.newsedge.com/opensapi/20/alert/delete?session=<<user-token>>&alert=<<alert-id>>
Parameter | Values | Description |
---|---|---|
alert | An alert identifier. Use the value of the alert element's id attribute returned from an alert/list request. | |
session | The ID of the OPENS API session. Use the user-token value returned from the session/login request. |
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 include an opens-api element with a single message sub-element.
Name | Values | Description |
---|---|---|
message | If the request is successful the text message indicates the alert was deleted for the current user and includes the alert ID and the current user ID. For example: <message>Alert 34729 for user 32594 deleted</message> If an error occurs, the text message contains an explanation of the error. |