All Projects → ryanbradynd05 → Go Tmdb

ryanbradynd05 / Go Tmdb

Licence: mit
Golang Wrapper for TheMovieDB API

Projects that are alternatives of or similar to Go Tmdb

Fury
FURY - Free Unified Rendering in pYthon.
Stars: ✭ 68 (-2.86%)
Mutual labels:  hacktoberfest
Zola Theme Terminimal
A simple, minimal retro theme for Zola
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Marketplace Sample Apps
Repository of sample codes demonstrating usage of SDK and APIs on the Freshworks developer platform. 🔗 https://developers.freshworks.com
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Rhine
Haskell Functional Reactive Programming framework with type-level clocks
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest
Grafana
Development repository for the grafana cookbook
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest
Kafka Elasticsearch Injector
Golang app to read records from a set of kafka topics and write them to an elasticsearch cluster
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Terraform Aws Airflow
Terraform module to deploy an Apache Airflow cluster on AWS, backed by RDS PostgreSQL for metadata, S3 for logs and SQS as message broker with CeleryExecutor
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest
Gleebug
Debugging Framework for Windows.
Stars: ✭ 1,168 (+1568.57%)
Mutual labels:  hacktoberfest
Akka Http
The Streaming-first HTTP server/module of Akka
Stars: ✭ 1,163 (+1561.43%)
Mutual labels:  hacktoberfest
Flask weather
☀️ ☔️ Flask app to auto-detect local weather based off of user's IP address.
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Kbbi Qt
KBBI Offline Remake with Qt
Stars: ✭ 68 (-2.86%)
Mutual labels:  hacktoberfest
Modtweaker
ModTweaker is an addon for CraftTweaker, which provides Integration for an amount of mods.
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest
Rosetta project
Algorithms implemented in Python, JS and Go. Feel free to add another language!
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Attachment
Tools to deal with dependencies in scripts, Rmd and packages
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest
Translala
Translation Toolbox for your Laravel/Symfony project (translate, stats, commons and dead translations reports, coverage, CI process)
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Pretty Print
pretty print module for the jvm
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest
Mmctl
A remote CLI tool for Mattermost
Stars: ✭ 70 (+0%)
Mutual labels:  hacktoberfest
Chaos
🔥 CHAOS is a Remote Administration Tool that allow generate binaries to control remote operating systems.
Stars: ✭ 1,168 (+1568.57%)
Mutual labels:  hacktoberfest
Mattermost Webapp
Webapp of Mattermost server: https://github.com/mattermost/mattermost-server
Stars: ✭ 1,161 (+1558.57%)
Mutual labels:  hacktoberfest
Ember Styleguide
This is a UI addon that intends to help standardize the Ember family of websites and make it easier to make the Ember website an Ember app.
Stars: ✭ 69 (-1.43%)
Mutual labels:  hacktoberfest

go-tmdb

GoDoc -- Code Coverage Report

A Go Wrapper for the API of The Movie DB. Complete documentation and test suite are included.

An api_key is needed to use the API. Register for one at themoviedb.org.

Note: This product uses the TMDb API but is not endorsed or certified by TMDb.

The Movie DB

How to install

go get github.com/ryanbradynd05/go-tmdb

How to use

Import the library

import "github.com/ryanbradynd05/go-tmdb"

Create a var for global properties

var tmdbAPI *tmdb.TMDb

Initialize the library using your api_key

config := tmdb.Config{
		APIKey:   "YOUR_KEY",
		Proxies:  nil,
		UseProxy: false,
	}

	tmdbAPI = tmdb.Init(config)

Use the api methods as you want, for example:

fightClubInfo, err := tmdbAPI.GetMovieInfo(550, nil)

To use optional parameters, pass in a map[string]string of options and values:

var options = make(map[string]string)
options["language"] = "es"
spanishFightClub, err := tmdbAPI.GetMovieInfo(550, options)

All functions return Go structs. To return JSON, use the ToJSON function:

fightClubJson, err := tmdb.ToJSON(fightClubInfo)

How to test

Create a local.yml file in the root directory that mirrors the local.yml.example file. Then, either run go test to simply run the tests or run the coverage.sh file to run the tests with coverage info.

Available methods

All themoviedb.org API v3 GET methods are included. The POST and DELETE APIs are not included yet. For examples on how to call each function, refer to that function's tests. For documentation of the TheMovieDB's API, see their documentation.

License

The MIT License (MIT)

Copyright (c) 2015 Ryan Brady

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].