Python

OneDrive API features

Microsoft has three file storage options: OneDrive Personal OneDrive Business Sharepoint These have recently been unified into one new OneDrive API https://dev.onedrive.com and oAuth is preferred method of authentication. However there are some key differences how the API: OneDrive Personal authenticates against oAuth account created at Microsoft Application Registration Portal using a Microsoft account (Live, Microsoft.com). Authentication url is: https://login.live.com/oauth20_authorize.srf OneDrive Business […]

OneDrive API features Read More »

Tracking Cuba Gooding Jr’s Twitter follower count

Happened to see Cuba Gooding Jr’s first tweet about 30 minutes or so after he created it. Update: @cubagoodingjr is no longer active so not getting tweets from it any longer At the time his profile said he had 559 followers. A few minutes later I refreshed his profile and saw the follower count had increased

Tracking Cuba Gooding Jr’s Twitter follower count Read More »

Flask SQLAlchemy relationship associations and backref

Flask-SQLAlchemy relationship associations are useful to easily retrieve related records from a related Model. In a Python Flask application I wanted to use a many-to-many relationship between Photos and Tags (eg many categories assigned to one or more photos). To do this I had the following things set up in my application: 3 database tables

Flask SQLAlchemy relationship associations and backref Read More »

Scroll to Top