I'm trying to find out whether it's possible to post a new post to a group via the linkedin API and have a link in the title of the post?
I can't find any documentation on what is allowed or not in the title in the documentation here:
https://developer.linkedin.com/documents/groups-api
Do you know if this is possible?
I have seen that it is possible.
An example is here: http://www.linkedin.com/groups/Now-new-website-FoodBarcelona-Restaurants-1446917.S.136723085?qid=90c4aa0a-fc9a-4934-b7e5-3d555133b8e5&trk=group_most_popular-0-b-ttl&goback=%2Egmp_1446917 (not sure if it's visible without being a member).
In the lists of questions the title is the link to the details page, but on the details page, there is a link shown in the end of the title.
Not sure though if that is passed as html or linkedin automatically parses links and converts them to html.
Doesn't look like it; you can test by trying to create a post here:
http://simplelinkedin.fiftymission.net/demo/groups.php#groupCreatePost
When you add any HTML to the tile, the API responds with a 400 error:
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '\' (code 92) in start tag Expected a quote
at [row,col {unknown-source}]: [3,34]
Logically, I'm not sure how it would, as when you create a post via the API, it posts to a group on LinkedIn.com, and every group post title is itself a link to the full post itself within the group.
Related
I'm looking at the API documentation here,
https://www.mediawiki.org/wiki/API:Query
Getting the wikitext for a page is mentioned in the beginning of the documentation,
The action=query module allows you to get information about a wiki and the data stored in it, such as the wikitext of a particular page, the links and categories of a set of pages, or the token you need to change wiki content.
but I cant seem to figure out what parameters to pass in the API request to return the wikitext for a given page. Anyone know how to do this?
I've tried parameters like,
{'action':'query', 'titles':'Anarchism', 'prop':'wikitext', 'format':'json'}
You must use this query .
https://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&format=json&titles=Anarchism&rvslots=main
How i can get date data like that google search. Is it possible to get it?
I never found it in google custom search API. The second picture i post is only snippet which got date and some description about it. The first picture from google search news and the second is google custom search
The following API request returns metadata, like published time, only if it is mentioned in its HTML source.
GET https://www.googleapis.com/customsearch/v1?key=APIkey&cx=CustomSearchEngineID&q=rambo
And refer to the "metatags" section
And Voila!
Hope that helps :)
I'm experimenting with the Wikipedia API and was trying to get the full urls for all images on a particular page, in this example Google's main page (http://en.wikipedia.org/wiki/Google).
I found the page id through the use of another API and then attempted to use this information in the following API to get the full urls of all images on that page:
http://en.wikipedia.org/w/api.php?action=query&pageids=1092923&generator=images&prop=imageinfo&iiprop=url|dimensions|mime&format=xml
I get some of the page images from this but cannot understand why I am not getting all - specifically the logo which is what I was most interested in. Apologies I am aware that there are similar questions which have been asked but I was not able to find one which would assist me here.
The API does not give you all results at once, it defaults to 10 results. You see in the beginning answer that you have a value for the parameter gimcontinue. If you use it like this you get more images: http://en.wikipedia.org/w/api.php?action=query&pageids=1092923&generator=images&prop=imageinfo&iiprop=url|dimensions|mime&format=xml&gimcontinue=1092923|Google_bike.jpg
Alternatively, you can ask for more images at once using gimlimit like this: http://en.wikipedia.org/w/api.php?action=query&pageids=1092923&generator=images&prop=imageinfo&iiprop=url|dimensions|mime&format=xml&gimlimit=500
I have to get list of comment and rating of my goolge-plus page in json format form this url (test url)
https://plus.google.com/b/116355901745826833455/116355901745826833455/posts
I try in developer section of google-plus page. but i dont get appropriate method to find this. please any body can told me in which section of google developer i found this method. this is the first time i have to integrate any google api.
For your Google+ Page, you can make a call to activities.list using the Google+ Page ID to see all of the public posts that the Page has made, including +1s and comments and reshares on those posts. The documentation explains it well and also has an API explorer which you can try for yourself.
For additional information on a particular post, you can try comments.list--as you mentioned--or activities.get.
For the number of +1s for the Google+ Page specifically, you can try a people.get call using the Page ID.
The Google+ API does provide you with some information you ask for as Joanna states, but I believe what you really are looking for is the Place details within the Google Places API, which provides details about businesses, such as reviews. That API will return ratings and reviews. If you also needed +1s then you'd need to use both APIs.
I want to fetch the feeds which are posted by my iPhone app's users on to my twitter app.
I found this URL - http://search.twitter.com/search.json?q=serachKeyword&result_type=recent
This will return to us a dictionary result which contains an array of tweets that matches with the serachKeyword.
But i want to fetch only the feeds which are posted via my twitter app.
Is there any way to fetch only my twitter application feeds not all?
Can i filter the search results or something like it?
The Twitter API says yes, you can filter by source.
The Search Operators section says:
news source:tweet_button | containing "news" and entered via the Tweet Button
The Source section says:
• can only be combined with a keyword parameter. If you do not include a keyword you will receive an HTTP 403 error with the message: {"error":"You must enter a query."}.
• supports multi-word sources by using _ instead of spaces. For example, the source "Tweet Button" should be entered as source: tweet_button
So you must have a keyword parameter and if your client name has spaces in it replace them with underscores.
There is no complete method to do this. As #JoePasq answered you can search on source but you must include a keyword and Twitter search is filtered for quality and relevance.
Search is focused in relevance and not completeness. This means that some Tweets and users may be missing from search results.
The Search API is not complete index of all Tweets, but instead an index of recent Tweets.
What you should do is have your application post a request to a server you control every time a user posts a tweet with the status_id. This way you can store a complete database of all tweets posted from your app and query the data as needed.