Skip to content

shortfundly/shortfundly-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
}

About

A Golang SDK for Shortfundly API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages