Skip to content
A Golang SDK for Shortfundly API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
error.go
festivals.go
film_makers.go
films.go
request.go
shortfundly.go

README.md

shortfundly-sdk-go

A Golang SDK for Shortfundly API

Installation

go get github.com/shortfundly/shortfundly-sdk-go

Avalailable Languages

1. Tamil
2. Malayalam
3. Kannada
4. Telugu

Example

package main

import (
	"fmt"

	shortfundly "github.com/shortfundly/shortfundly-sdk-go"
)

func main() {

	// Initialise your application key to start the application
	s := shortfundly.New("YOUR_API_KEY")
	
	// Each page contains five list of film details

	// trending gets the trending film data
	trending, err := s.GetTrendingFilms(3)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(trending)

	// topRated gets the high rating film data in the pageNo of 265
	topRated, err := s.GetTopRatedFilms(265)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(topRated)

	// recentTamil gets the recent tamil uploaded film data
	recentTamil, err := s.GetRecentFilms("all", 5)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(recentTamil)

	// recentMalayalam gets the recent malayalam uploaded film data
	recentMalayalam, err := s.GetRecentFilms("malayalam", 4)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(recentMalayalam)
}

You can’t perform that action at this time.