Is it possible to create a bookmark in the Google Docs API for a specific paragraph element and then get the bookmarkId of the bookmark?
Answer:
Unfortunately at the moment this isn't possible to do.
Feature Request:
Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services, and a Feature Request for this has already been made over there.
You can view this feature request here, to which you can click the star (☆) in the top left to let Google know more people want this feature to be implemented.
Related
I've been dealing with this issue for weeks. Does anyone know how to create column tags in Data Catalog from DLP results? I wanted to run inspection job on DLP and then tag the inspected tables with the infoTypes that I've inspected. I only found Java codes regarding this problem but I appreciate if anyone can help me with Python.
I was unable to find a sample Python code that would implement column level tags. This Tag() function from the Python Client Library could be useful. The complete Data Catalog Python Client Library documentation can be found here.
Feature Request
However, you can let Google know that this is a feature that is important for access through their client libraries, and that you would like to request they provide a sample code for it.
Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services. I'd suggest you make a feature request there. The best component to file this under would be the Big Data, with the Feature Request template.
I have a public Google Calendar link (which I do not manage), and I would like to extract data from it to my python program. (From there I will myself process the data).
Basically, given a url to a public Google Calendar, I want to parse the events. No need to add or delete events, just read the events and their info. I don't see a reason to log in to my Google account because anyone with the url can view said Calendar from their browser with no sign-in needed.
Couldn't find anything on the web that does specifically this. Thanks!
You need to use authentication. There simply is no way around this. There are several reasons for this, but the main one is that the Google Calendar API has usage limits.
If there is no way to identify the account performing the request, you could create an app that spams the API with so much requests you bring down the Google Calendar API for everyone. Attaching authentication to the requests allows Google to track the usage.
You should use a service account created specifically for this. The best documentation about service accounts and how to use them in python is this one.
Combining this documentation for the Calendar API with the one linked above should get you started.
Note, if you are performing a lot of requests, you might hit the limits mentioned above. You will need to use what is called exponential backoff. The principle is described here. If you want to know about why to use a random value, see this nice blogpost on how to shoot yourself in the foot.
Is there a possibility of connecting paypal account to website? Such as facebook connect? I want to make a verification tool which:
1. takes me to paypal website
2. wants me to log in
3. redirects me back to my website and sends some authorization data.
Is it possible to do it?
Paypal has great documentation on how to connect to it, including some SDK's and sample code (I don't see anything in Python, though). See https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_documentation
If you follow dcrodjer's link, you'll eventually find a link to a project called django-paypal on github, which might help you, too. (I'd post the link, but my reputation is not high enough yet to post more than one link in an answer).
Other than that library, and the official documentation, I'm not 100% sure what exactly you are trying to do. You don't really connect accounts like you do with Facebook, you mostly do one shot authorizations for purchases or recurring purchases. But check out the documentation, and you should be able to find what you need.
I found sample python code here. It helped me to integrate my website. Some technical documentation is here. However you may have some problems with testing this service because it is disabled for sandbox accounts. If you want to turn it on you have to make steps described here in section "Sandbox and Live access".
I have a friend that owns a small business and has a Page on Facebook. I want to help her manage it from a marketing perspective, and figure that it may be best to do so through their API.
I have skimmed their API documentation, and have a basic working knowledge of Python. What I can't figure out is if I can access their page's data with Python and grab the data on wall posts, who liked posts, etc. Is this possible? I can't find a decent tutorial for someone who is new to programming.
To provide context, I have been scraping the Twitter Search API for some time now and I am hoping there is something similar (request certain data elements, and have it returned as structured data I can analyze). I find their API extremely straight forward, and for Facebook, I don't know where to begin.
I don't want to create an application, I simply want to access the data that is related to my friend's page.
I am hoping to find some decent tutorials and help on what I will need to get started. Any help you can provide will be greatly appreciated.
You could try Pyjamas Desktop.
http://pyjs.org/
It runs python in an embedded web browser and gives you access to the html DOM.
This potentially means that you can use the JS api directly from python.
You will need to be running a server locally though.
Basically to automate posting stuff to the persons profile you need to get their oath token and then make API calls w/ that token.
Here are steps to get API token:
Register APP w/ facebook and get app id
Have your friend click this link https://www.facebook.com/dialog/oauth?
client_id=[your app id here]&
type=user_agent&
scope=email,read_stream,,,user_about_me,offline_access,publish_stream&
redirect_uri=http://www.facebook.com/connect/login_success.html
Then record that token for future
You can now use any available python FB lib to post and manage that FB page.
This should get you started:
http://eggie5.com/20-getting-started-w-facebook-api
I just want to import my facebook status and photos to my personal django website but all the examples and documentation i can find are for developing facebook applications.
A simple rss feed would be enough but it doesnt seem to exist in facebook.
Do i really have to create a full facebook app to do this?
A simple facebook application isn't that hard ... excluding trying to decipher the soup on developers.facebook.com.
The "problem" is that you need to get an application key, application secret, and sometimes a session key in order to access the web services. Unless someone is sharing a service to do just that (I haven't looked, and you'd need to trust them) then the only way to fulfill the requirements are to create an application. However, the application key/application secret don't actually require that you write anything. They will show up in the Facebook Developer Application (the application that allows you to edit your applications...)
Now, all you need is a session key (however, a session key is not always required, see the Understanding Sessions link below) -- and hopefully a permanent one. To do this, ask for the extended offline_access permission**. If you grant that to an application then it can get a session for you whenever it feels like it (or rather, the session does not follow the one-hour expiration policies for that application). Extended permissions. Understanding Sessions. Oh, but ignore that 'auth.renewOfflineSession(UID)' example -- the method doesn't exist. I told you the "developer" documentation was soup :-)
You can use the URL in format:
http://www.facebook.com/tos.php?api_key=YOURAPIKEY&req_perms=offline_access to request the permission of yourself. Now see the links below :-)
Extra information in:
**I'm not entirely sure if new changes to the FB policy affect forever-sessions, but this link seems more than relevant to the task at hand:
http://blog.jylin.com/2009/10/01/loading-wall-posts-using-facebookstream_get/
Getting offline_access to work with Facebook
Facebook offline access step-by-step
(You need never post/share your facebook application -- you can keep it in sandbox mode forever.)
Probably. Anything that bypassed authentication would be a fairly large privacy issue.
With the release of the new graph api, this is pretty simple once you get your oauth token. Unfortunately you will need to create an app, but it can be a rather small one to get your oauth token so facebook can authorize your requests. You can use the python sdk here: http://github.com/facebook/python-sdk/
Once you have your token, you make a call to: https://graph.facebook.com/[your profile]/statuses?token=[your token]
And you will get json back.
If you first login to facebook and then go to the documentation page you can see the working example by clicking on the statuses link in the connections table.
http://developers.facebook.com/docs/reference/api/user