about summary refs log tree commit diff stats
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #1620 from profanity-im/readd-ciMichael Vetter2021-12-033-15/+16
|\
| * ci: re-enable tumblweedMichael Vetter2021-12-032-2/+2
| * ci: update ubuntu python package namesMichael Vetter2021-12-031-1/+2
| * ci: re-enable ubuntuMichael Vetter2021-12-031-1/+1
| * ci: re-enable macosMichael Vetter2021-12-031-12/+12
|/
* Merge pull request #1610 from nandesu-utils/masterMichael Vetter2021-11-301-4/+10
|\
| * Refined sender device acquirementnandesu-utils2021-10-291-5/+7
| * Acquire sender's device list on connectionnandesu-utils2021-10-281-4/+8
// Copyright (c) 2020, Andinus <andinus@inventati.org>

// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.

// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

package bing

import (
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"time"
)

// Photo holds responses
type Photo struct {
	StartDate     string `json:"startdate"`
	FullStartDate string `json:"fullstartdate"`
	EndDate       string `json:"enddate"`
	URL           string `json:"url"`
	URLBase       string `json:"urlbase"`
	Copyright     string `json:"copyright"`
	CopyrightLink string `json:"copyrightlink"`
	Title         string `json:"title"`
	Hsh           string `json:"hsh"`
}

// BPOD  holds list of response
type BPOD struct {
	Photos []Photo `json:"images"`
}

// BPODPath returns Bing Photo of the Day responses
func BPODPath(bpodInfo map[string]string, timeout time.Duration) (BPOD, error) 
* Remove spec fileMichael Vetter2021-10-231-51/+0
* readme: remove chat badgeMichael Vetter2021-10-221-1/+1
* Merge pull request #1607 from profanity-im/utf8indicatorcharMichael Vetter2021-10-228-230/+202
|\
| * ci: remove ubuntuMichael Vetter2021-10-221-1/+1
| * Allow utf8 in occupants header charMichael Vetter2021-10-226-29/+24
| * Allow utf8 in occupants charMichael Vetter2021-10-226-29/+25
| * Allow utf8 in roster room private charMichael Vetter2021-10-226-27/+22
| * Allow utf8 in roster rooms charMichael Vetter2021-10-226-29/+24
| * Allow utf8 in roster private charMichael Vetter2021-10-226-27/+22
| * Allow utf8 in roster resource charMichael Vetter2021-10-226-30/+28
| * Allow utf8 in roster contact charMichael Vetter2021-10-226-33/+28
| * Allow utf8 in roster header charMichael Vetter2021-10-216-29/+32
* | tests: Add win_get_last_sent_messag() stubMichael Vetter2021-10-221-0/+5
* | Merge pull request #1601 from MarcoPolo-PasTonMolo/masterMichael Vetter2021-10-226-55/+145
|\ \ | |/ |/|
| * Move declaration and definition of win_get_last_sent_message to the correct p...MarcoPolo-PasTonMolo2021-10-225-32/+33
| * Remove autocomplete for /correct-editorMarcoPolo-PasTonMolo2021-10-214-31/+18
| * Export common code to helper functionsMarcoPolo-PasTonMolo2021-10-171-122/+72
| * Add /correct-editor commandMarcoPolo-PasTonMolo2021-10-074-1/+153
* | ci: debian test..Michael Vetter2021-10-161-0/+1
* | ci: use new icons switchMichael Vetter2021-10-161-6/+6
* | Merge pull request #1604 from mdosch/themes-snikketMichael Vetter2021-10-161-0/+82
|\ \
| * | Add (experimental) theme snikket.Martin Dosch2021-10-161-0/+82