how to submit bulk data to Weblogs ping server - rss

I am working on news website and I want to publish new news and news updates to weblog using Restful call WebLogs.com api #7
As time duration b/w calls may not less then 30 mins thats why i want to push bulk updates using RSS aggregator.
I found the following document
http://getaconnect.com/rss/category/queued/
in the format of where item may be multiple
<Channel>
<item>
</item>
<item>
</item>
</Channel>
Example HTTP GET request to weblog ping server:
http://rpc.weblogs.com/pingSiteForm?name=InfraBlog&url=http%3A%2F%2TestRss.com
My question is if i ping and provide rss file then after 30 mins should i update the same file with new contents to i have to provide separate file.
Another question is if i would like to update text/location of already submitted news how can i do it ?
Last question is any suitable API for rsss generate in java ?

create rss data and submit it to weblong ping server.

Related

how to get all the files present for a particular commit id in bitbucket using rest API?

I want to get all the files present for a particular commit Id in bitbucket server using rest API. Is there any api to get the complete data ?
Hi you can use this..
rest/api/1.0/projects/{projectname}/repos/{reponame}/commits/{commit
id}/changes
The reply will contain (among other information) the details of each files modified in the commit.
As an example, this is the related section from the entire json output:
path: {components: ["file1.txt"],parent: "",name: "file1.txt",extension: "txt",toString: "file1.txt"},
You are looking for this endpoint: https://docs.atlassian.com/bitbucket-server/rest/6.4.0/bitbucket-rest.html#idp178
GET /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/archive?at={commitId}
With this you will get in default a zip file with all the files at this specific commit. Following the link you can get more information about the endpoint.

import individual files automated to firestore with the POST: https://firestore.googleapis.com/v1beta1/{database}/documents.commit?

As the title suggested, can I post with the: https://firestore.googleapis.com/v1beta1/{database}/documents.commit command a single JSON file directly in my Firestore database and will they be processed? Added to the collections etc? Or should I go with POST projects.databases.documents.createDocument. I was reading this documentation
I want to put json files from different sources in to my Firestore database to build up my collection.
And where should I put the filename of the json file that I want to upload?
Thanks!!
You can see here [1] the usage of both calls:
documents.commit= Commits a transaction, while optionally updating documents
documents.createDocument= Creates a new document
For using the JSON in the API call you need to send a POST request, check this question [2].
Also, regarding your last comment, you can start collections and add documents using the Firestore UI, but also you can do that using client libraries in different languages (Python, Java, Go...). Here is a list of "How to"s regarding Firestore [3].
In case you think that some features are missing, you can always file a Feature Request following this link [4] (as Firestore is still not there, I would choose Datastore), but keep in mind that Firestore is still in Beta.

how to programmaticaly get events from sterling file gateway?

We have Sterling file gateway with UI and everything and we also have control center where we see the file transfers from SFG. Trying to find out how i can subscribe to the events from Filegateway[SFG] programmaticaly. The documentation is not clear on if there is a way to do this.
The Database tables FG_EVENT and FG_EVENTATTR contain the details about Filegateway events.
Example of SQL query:
select * from fg_event t1,fg_eventattr t2 where t1.event_key=t2.event_key and
event_code='FG_0422'
You can add different criteria to the SQL query to filter on filename, type of delivery, date , etc ...
Then you can use SQL queries with any client to query the Database.
Sterling Control Center can monitor the following events:
•Arrived File events - every Sterling File Gateway Arrived File status code is recorded as a successful (FG_0411 - Arrived File Routed) or a failed (FG_0455 - Arrived File Failed) file transfer
•Route events
•Delivery events
More information about IBM Control Center.
There is also another way to invoke business processes by certain events:
Edit the listenerStartup.properties and listenerStartup.properties.in files to include the line:
Listener.Class.xx=com.sterlingcommerce.server1.
dmi.visibility.event.XpathBPLauncherEventListener
Where xx is the next available number according to how many listeners are already enabled in the file.
Edit the visibility.properties and visibility.properties.in files to add the necessary information to configure the listener to launch the proper business processes based on the correct events. The pattern for registering the events with the listener is:
bp_event_trigger.X=eventPreFilter,xPathExpression,bpname,userId
There is an example in this page:
https://www.ibm.com/support/knowledgecenter/SS3JSW_5.2.0/com.ibm.help.aft.doc/SI_AFT_InternalEvent.html

How can my RedApp retrieve current PNR open in sabre red workspace

I am new to Sabre redapp development. My redapp use case is to get an event notification when a new booking is made and to get the currently opened PNR in the agent workspace.
I see that I can subscribe to events based on action code, but I
do not know what the action code is for a new booking command. Also
if I have to filter through all commands, what should I filter on?
Secondly I want to get the PNR opened in the workspace. The
IWorkBenchService gives the WorkAreaData object, but it only has an
API isPNRPresent(). How can I read the current PNR data into my
Redapp?
What you can do is listen to the command that is used to close/save a reservation (aka PNR). After that, you can call the TravelItineraryRead webservice to get the PNR information.
In the SDK folder you will find a sample folder, and in that folder an plugin example called com.sabre.redapp.example.cf.sws-1.0.1-SNAPSHOT-v20140313-1205 that implement a webservice call.
Also you can check the section: Red App Help - Release 2.13.2 > Red App Dev Help 2.13.2 > Communications in Red Apps > Sabre Web Services Communications> Accessing Sabre Web Services in the Sabre Red Apps Eclipse help.

Integrate an web application in Drupal for processing

I need to integrate my application with Drupal Web Protal. I need to fetch the data entered by the user for processing in my application. Can anyone suggest a way for that ?
Thanks in advance....
I assume you are using Drupal 7.
To export data from Drupal in CSV / JSON / XML /... : Views Datasource allows you to setup a view (create a page, assign a URL) which displays whatever you want (content, taxonomy, users...). Then you can call its URL and fetch your JSON / CSV / XML... file and process it in your app. You can also write a small PHP script which calls this URL, write the response in a file, send it on a FTP...Views Data Export can help too (handle large data). If you need to fetch nodes individually Content as JSON can be handy (it provides URLs for each node which return node fields in JSON).
To import data in Drupal : Feeds.
Good luck

Resources