https://github.com/mbg/cambridge.talks
A .NET library for accessing talks.cam.ac.uk
https://github.com/mbg/cambridge.talks
Last synced: 2 months ago
JSON representation
A .NET library for accessing talks.cam.ac.uk
- Host: GitHub
- URL: https://github.com/mbg/cambridge.talks
- Owner: mbg
- License: mit
- Created: 2015-07-25T16:45:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-25T17:19:17.000Z (almost 10 years ago)
- Last Synced: 2025-02-06T09:13:57.192Z (4 months ago)
- Language: C#
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cambridge.Talks
A .NET library for accessing talks.cam.ac.uk
## Usage
Add the library as a reference to your project and import the `Cambridge.Talks` namespace. To load upcoming talks in a feed, simply use the `Feed.Load` method with the unique ID of the feed. If the request is successful, the `Talks` property of the feed will contain all talks that have been loaded.
```C#
Feed feed = Feed.Load(6330);foreach (Talk talk in feed.Talks)
{
Console.WriteLine("[{0}] {1} ({2})", talk.StartTime, talk.Title, talk.Speaker);
}
```The `Feed.Load` method supports some optional arguments which can be used to customise which talks are requested. For example, to load the 10 most recent talks in reverse order:
```C#
Feed feed = Feed.Load(6330, limit: 10, endTime: DateTime.Now, reverseOrder: true);
```The arguments correspond to those documented on the [talks.cam](http://talks.cam.ac.uk/document/specification) website. XML documentation is also provided for all arguments.