accessing External Referrers with Facebook Graph API - api

How do I go about accessing External Referrers? I see this information in the new Insights/Reach, but can't find it in the Graph API at all.
thanks.

You can get them via the Graph API by querying into the FQL insights table.
https://developers.facebook.com/docs/reference/fql/insights/
An example of one of the referrals I see there is page_views_external_referrals, however, there are dozens more listed on that documentation page.

Related

How can I use M/S Graph APIs to read Sharepoint lists

I see from other Users' questions that this used not to be possible but other research suggests it now might be; I'm using Graph Explorer and have started with this generic URL: https://graph.microsoft.com/v1.0/sites/{siteId}/lists/{listId}/. I'm logged in as a User who is an Owner of the Sharepoint site I'm going after. But so far, I have not been able to find, much less see the contents of any Lists that I know are there in the site. Q1: Is this even possible (now)? Q2: How - or - what am I missing?
Yes this is possible but the graph API doesn't rely on the permissions as defined on SharePoint and might explain why you are not seeing the lists you own via the graph api.
You will have to setup the necessary Azure AD permissions on your app to access SharePoint list and items via the graph api.
As shown below, i can read data from the specified list based on permissions already consented to.

Get Page Views via Hubspot API

My Data Science team is trying to pull Hubspot info into their data visualization platform via Hubspot's API.
They're telling me that they can't find the information fora contact's pageview anywhere. I've searched the documentation for the API, contacted Hubspot Support (who told me they can't help with the API), and spent hours googling but I can't find any information on this.
Does the API simply not provide that information? I know it's collected, because I can see page views in a specific contact's timeline...so why can't I access it via API?
Has anyone overcome this challenge in the past or does anyone have any advice?
I should mention that I'm about 10% literate when it comes to anything code related...so I could just be missing something.
Assuming you are using PHP in your API, then you should be able to find the number of page views here:
$objHubSpot->properties->hs_analytics_num_page_views->value
(where $objHubSpot is the name of the HubSpot object returned through API)
If you want to know the actual URL of the visited pages, then keep in mind that HubSpot only keeps a record of the last few URLs.

Any way to get a Restaurant menu from Yelp! API

Trying to extract some menu data from a restaurant on Yelp using the v2.0 API. The only thing i am getting via the API response is a menu_provider field which i don't know how to use - any ideas?
My understanding is that Yelp gets their menu information from Locu (and potentially other sources), so they won't share that via their API.
Per their documentation, they provide menu_provider and menu_date_updated, but not actual menu data in their API.
Documentation: http://www.yelp.com/developers/documentation/v2/business
TechCrunch article on partnership: http://techcrunch.com/2013/04/23/yelp-partners-with-locu-allowing-businesses-to-post-menus-daily-specials-photos-to-yelp-in-real-time/

Does the Picasa API support querying and updating the list of users that an album is shared with?

I'm trying to figure out if I can use the Picasa API to grant other users the ability to view private albums. The developer's guide shows the following in the example data returned for the feed of a user's albums:
<link rel='http://schemas.google.com/acl/2007#accessControlList'
type='application/atom+xml'
href='https://picasaweb.google.com/data/entry/api/user/liz/albumid/albumID/acl?authkey=authKey&v=2' />
However, when I request one of the access control list URLs for one of my own albums, it only returns exactly the same data as the URL for the album itself. I couldn't find anything in the Picasa API documentation about it, but that looks similar to the functionality in the Google Docs API for sharing documents. Does anyone know if it's supported for Picasa?
I think I tried just about everything before I decided that all the unanswered questions out there about how to do it was a good indication that it still isn't doable (at least not using the API).
I found this feature request, it doesn't seem to be very prioritized.

How to add custom field in salesforce leads through rest api?

Hi
I am currently working on an application which is implementing salesforce.com REST api. I have done all the authentication part and received all the info needed. Now I want my application to push the leads into the customer's account. But the lead fields can be customized and different customer use their different custom fields, so any1 can suggest me how to add that custom field in my form which will be pushed to the customer's salesforce account.
Thanks
You can use the describe resource in the REST API to obtain the metadata about the Load object, including all the fields.
https://{someinstance}.salesforce.com/services/data/v20.0/sobjects/lead/describe
You can use the list of fields to drive your form, and to control what you subsequently POST to /services/data/v20.0/sobjects/lead to create the new lead.
Here's the link to the REST API pilot docs incase you haven't seen them
No idea if the REST API supports describe() calls, they're a way of querying for all metadata about table (columns, their types etc). In normal webservice API this info can be found at http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content/sforce_api_calls_describesobject.htm#topic-title
the Metadata REST API was put on hold by Salesforce, so there is no REST API for Metadata (there is some limited support in the Tooling REST API, but not enough to create an object).
https://salesforce.stackexchange.com/questions/20763/creating-a-custom-object-using-rest-api