Documentation ¶
Index ¶
- type Friend
- type FriendResponse
- type HttpRequest
- type LikeResponse
- type Match
- type MatchesRequest
- type MatchesResponse
- type Meta
- type Profile
- type ProfileUpdateRequest
- type ProfileUpdateResponse
- type RecsCoreResponse
- type RecsCoreUser
- type RecsSocial
- type RecsSocialResponse
- type Request
- type TAuth
- type TAuthRequest
- type TAuthRequester
- type TAuthResponse
- type TAuthResponseData
- type TRequest
- type TinderGo
- func (t *TinderGo) Authenticate(token string) error
- func (t *TinderGo) Decide(user RecsCoreUser, action string) (LikeResponse, error)
- func (t *TinderGo) Friends() ([]Friend, error)
- func (t *TinderGo) Like(user RecsCoreUser) (LikeResponse, error)
- func (t *TinderGo) Matches() ([]Match, error)
- func (t *TinderGo) Meta() (Meta, error)
- func (t *TinderGo) Pass(user RecsCoreUser) (LikeResponse, error)
- func (t *TinderGo) Profile() (Profile, error)
- func (t *TinderGo) RecsCore() ([]RecsCoreUser, error)
- func (t *TinderGo) RecsSocial() ([]RecsSocial, error)
- func (t *TinderGo) UpdateDistance(miles int) (ProfileUpdateResponse, error)
- func (t *TinderGo) User(userID string) (User, error)
- type User
- type UserPhoto
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FriendResponse ¶
type HttpRequest ¶
type HttpRequest interface { Get(url string) HttpRequest Post(url string) HttpRequest Set(name, value string) HttpRequest Send(value string) HttpRequest End() (string, []error) }
type LikeResponse ¶
type Match ¶
type Match struct { ID string `json:"_id"` Closed bool `json:"closed"` CommonFriendCount int `json:"common_friend_count"` CommonLikeCount int `json:"common_like_count"` CreatedDate time.Time `json:"created_date"` Dead bool `json:"dead"` LastActivityDate time.Time `json:"last_activity_date"` MessageCount int `json:"message_count"` Messages []interface{} `json:"messages"` Participants []string `json:"participants"` Pending bool `json:"pending"` NotFollowing interface{} `json:"not_following"` IsSuperLike bool `json:"is_super_like"` IsBoostMatch bool `json:"is_boost_match"` Person struct { ID string `json:"_id"` Badges []interface{} `json:"badges"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Gender int `json:"gender"` Name string `json:"name"` PingTime time.Time `json:"ping_time"` Photos []struct { SelectRate float64 `json:"selectRate"` SuccessRate float64 `json:"successRate"` FileName string `json:"fileName"` ID string `json:"id"` Extension string `json:"extension"` ProcessedFiles []struct { Width int `json:"width"` Height int `json:"height"` URL string `json:"url"` } `json:"processedFiles"` URL string `json:"url"` } `json:"photos"` Teasers []interface{} `json:"teasers"` } `json:"person"` }
type MatchesRequest ¶
type MatchesRequest struct {
LastActivityDate string `json:"last_activity_date"`
}
type MatchesResponse ¶
type Meta ¶
type Meta struct { Status int `json:"status"` ClientResources struct { RateCard struct { Carousel []struct { Slug string `json:"slug"` } `json:"carousel"` } `json:"rate_card"` PlusScreen []string `json:"plus_screen"` } `json:"client_resources"` Notifications []interface{} `json:"notifications"` Groups []struct { Type string `json:"type"` SubType string `json:"sub_type"` Key string `json:"key"` GroupID string `json:"group_id"` Version int `json:"version"` IsPrimary bool `json:"is_primary,omitempty"` IsBaseGroup bool `json:"is_base_group,omitempty"` } `json:"groups"` Rating struct { LikesRemaining int `json:"likes_remaining"` SuperLikes struct { Remaining int `json:"remaining"` AlcRemaining int `json:"alc_remaining"` NewAlcRemaining int `json:"new_alc_remaining"` Allotment int `json:"allotment"` SuperlikeRefreshAmount int `json:"superlike_refresh_amount"` SuperlikeRefreshInterval int `json:"superlike_refresh_interval"` SuperlikeRefreshIntervalUnit string `json:"superlike_refresh_interval_unit"` ResetsAt interface{} `json:"resets_at"` } `json:"super_likes"` } `json:"rating"` Travel struct { IsTraveling bool `json:"is_traveling"` } `json:"travel"` Purchases []interface{} `json:"purchases"` Versions struct { ActiveText string `json:"active_text"` AgeFilter string `json:"age_filter"` Matchmaker string `json:"matchmaker"` Trending string `json:"trending"` TrendingActiveText string `json:"trending_active_text"` } `json:"versions"` Globals struct { BoostIntroMultiplier int `json:"boost_intro_multiplier"` InviteType string `json:"invite_type"` RecsInterval int `json:"recs_interval"` UpdatesInterval int `json:"updates_interval"` RecsSize int `json:"recs_size"` MatchmakerDefaultMessage string `json:"matchmaker_default_message"` ShareDefaultText string `json:"share_default_text"` BoostDecay int `json:"boost_decay"` BoostUp int `json:"boost_up"` BoostDown int `json:"boost_down"` Sparks bool `json:"sparks"` Kontagent bool `json:"kontagent"` SparksEnabled bool `json:"sparks_enabled"` KontagentEnabled bool `json:"kontagent_enabled"` Mqtt bool `json:"mqtt"` TinderSparks bool `json:"tinder_sparks"` AdSwipeInterval int `json:"ad_swipe_interval"` FetchConnections bool `json:"fetch_connections"` RateApp bool `json:"rate_app"` AppBoy bool `json:"app_boy"` SuperLikeAlcMode int `json:"super_like_alc_mode"` Plus bool `json:"plus"` SuperLike bool `json:"super_like"` RecsBlend bool `json:"recs_blend"` SquadsEnabled bool `json:"squads_enabled"` SquadsExtensionLength int `json:"squads_extension_length"` SquadsExpirationNotice int `json:"squads_expiration_notice"` PhotoPreviewEnabled bool `json:"photo_preview_enabled"` Discount bool `json:"discount"` Boost bool `json:"boost"` BoostDuration int `json:"boost_duration"` CanEditJobs bool `json:"can_edit_jobs"` CanEditSchools bool `json:"can_edit_schools"` CanAddPhotosFromFacebook bool `json:"can_add_photos_from_facebook"` CanShowCommonConnections bool `json:"can_show_common_connections"` } `json:"globals"` Tutorials []string `json:"tutorials"` Products struct { Plus struct { Regular struct { Skus []struct { ProductType string `json:"product_type"` PurchaseType string `json:"purchase_type"` ProductID string `json:"product_id"` IsPrimary bool `json:"is_primary"` Terms int `json:"terms"` IsBaseGroup bool `json:"is_base_group,omitempty"` } `json:"skus"` } `json:"regular"` } `json:"plus"` Superlike struct { Regular struct { Skus []struct { ProductType string `json:"product_type"` PurchaseType string `json:"purchase_type"` ProductID string `json:"product_id"` Amount int `json:"amount"` IsBaseGroup bool `json:"is_base_group,omitempty"` IsPrimary bool `json:"is_primary,omitempty"` } `json:"skus"` } `json:"regular"` } `json:"superlike"` Boost struct { Regular struct { Skus []struct { ProductType string `json:"product_type"` PurchaseType string `json:"purchase_type"` ProductID string `json:"product_id"` Amount int `json:"amount"` IsPrimary bool `json:"is_primary,omitempty"` IsBaseGroup bool `json:"is_base_group,omitempty"` } `json:"skus"` } `json:"regular"` } `json:"boost"` } `json:"products"` User struct { ID string `json:"_id"` ActiveTime string `json:"active_time"` AgeFilterMax int `json:"age_filter_max"` AgeFilterMin int `json:"age_filter_min"` APIToken string `json:"api_token"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Blend string `json:"blend"` CreateDate time.Time `json:"create_date"` Discoverable bool `json:"discoverable"` ConnectionCount int `json:"connection_count"` Interests []struct { CreatedTime string `json:"created_time"` ID string `json:"id"` Name string `json:"name"` } `json:"interests"` DistanceFilter int `json:"distance_filter"` FullName string `json:"full_name"` Gender int `json:"gender"` GenderFilter int `json:"gender_filter"` Name string `json:"name"` Photos []struct { ID string `json:"id"` URL string `json:"url"` Main bool `json:"main,omitempty"` FileName string `json:"fileName"` FbID string `json:"fbId"` Extension string `json:"extension"` ProcessedFiles []struct { URL string `json:"url"` Height int `json:"height"` Width int `json:"width"` } `json:"processedFiles"` } `json:"photos"` PhotosProcessing bool `json:"photos_processing"` PhotoOptimizerEnabled bool `json:"photo_optimizer_enabled"` PhotoOptimizerHasResult bool `json:"photo_optimizer_has_result"` PingTime time.Time `json:"ping_time"` SpotifyConnected bool `json:"spotify_connected"` Badges []interface{} `json:"badges"` Jobs []struct { Company struct { Displayed bool `json:"displayed"` Name string `json:"name"` ID string `json:"id"` } `json:"company"` Title struct { Displayed bool `json:"displayed"` Name string `json:"name"` ID string `json:"id"` } `json:"title"` } `json:"jobs"` Schools []interface{} `json:"schools"` Username string `json:"username"` SquadsDiscoverable bool `json:"squads_discoverable"` SquadsOnly bool `json:"squads_only"` Squads []interface{} `json:"squads"` CanCreateSquad bool `json:"can_create_squad"` SquadAdsShown bool `json:"squad_ads_shown"` } `json:"user"` }
type Profile ¶
type Profile struct { ID string `json:"_id"` AgeFilterMax int `json:"age_filter_max"` AgeFilterMin int `json:"age_filter_min"` Badges []interface{} `json:"badges"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Blend string `json:"blend"` CanCreateSquad bool `json:"can_create_squad"` ConnectionCount int `json:"connection_count"` CreateDate time.Time `json:"create_date"` Discoverable bool `json:"discoverable"` DistanceFilter int `json:"distance_filter"` FacebookID string `json:"facebook_id"` Gender int `json:"gender"` GenderFilter int `json:"gender_filter"` InterestedIn []int `json:"interested_in"` Interests []struct { ID string `json:"id"` Name string `json:"name"` } `json:"interests"` Jobs []struct { Title struct { Displayed bool `json:"displayed"` Name string `json:"name"` ID string `json:"id"` } `json:"title"` Company struct { Displayed bool `json:"displayed"` Name string `json:"name"` ID string `json:"id"` } `json:"company"` } `json:"jobs"` Location interface{} `json:"location"` Name string `json:"name"` Photos []struct { YoffsetPercent float64 `json:"yoffset_percent,omitempty"` ID string `json:"id"` XdistancePercent float64 `json:"xdistance_percent,omitempty"` Main bool `json:"main,omitempty"` YdistancePercent float64 `json:"ydistance_percent,omitempty"` XoffsetPercent float64 `json:"xoffset_percent,omitempty"` FileName string `json:"fileName"` Extension string `json:"extension"` ProcessedFiles []struct { Width int `json:"width"` Height int `json:"height"` URL string `json:"url"` } `json:"processedFiles"` URL string `json:"url"` SuccessRate float64 `json:"successRate"` SelectRate float64 `json:"selectRate"` Shape string `json:"shape,omitempty"` } `json:"photos"` PhotoOptimizerEnabled bool `json:"photo_optimizer_enabled"` PhotoOptimizerHasResult bool `json:"photo_optimizer_has_result"` PingTime time.Time `json:"ping_time"` Pos struct { At int64 `json:"at"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` } `json:"pos"` PosInfo struct { City struct { Name string `json:"name"` Bounds struct { Ne struct { Lat float64 `json:"lat"` Lng float64 `json:"lng"` } `json:"ne"` Sw struct { Lat float64 `json:"lat"` Lng float64 `json:"lng"` } `json:"sw"` } `json:"bounds"` } `json:"city"` Country struct { Name string `json:"name"` Bounds struct { Ne struct { Lat float64 `json:"lat"` Lng float64 `json:"lng"` } `json:"ne"` Sw struct { Lat float64 `json:"lat"` Lng float64 `json:"lng"` } `json:"sw"` } `json:"bounds"` Cc string `json:"cc"` } `json:"country"` } `json:"pos_info"` Schools []interface{} `json:"schools"` SquadsOnly bool `json:"squads_only"` SquadsDiscoverable bool `json:"squads_discoverable"` SquadAdsShown bool `json:"squad_ads_shown"` Username string `json:"username"` }
type ProfileUpdateRequest ¶
type ProfileUpdateRequest struct {
DistanceFilter int `json:"distance_filter"`
}
type ProfileUpdateResponse ¶
type ProfileUpdateResponse struct { ID string `json:"_id"` ActiveTime time.Time `json:"active_time"` AgeFilterMax int `json:"age_filter_max"` AgeFilterMin int `json:"age_filter_min"` APIToken string `json:"api_token"` Badges []interface{} `json:"badges"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Blend string `json:"blend"` CanCreateSquad bool `json:"can_create_squad"` College []interface{} `json:"college"` ConnectionCount int `json:"connection_count"` CreateDate time.Time `json:"create_date"` Discoverable bool `json:"discoverable"` DistanceFilter int `json:"distance_filter"` DistanceFilterMin int `json:"distance_filter_min"` Friends []string `json:"friends"` FullName string `json:"full_name"` Gender int `json:"gender"` GenderFilter int `json:"gender_filter"` Groups []interface{} `json:"groups"` HighSchool []interface{} `json:"high_school"` InterestedIn []int `json:"interested_in"` Interests []struct { CreatedTime string `json:"created_time"` ID string `json:"id"` Name string `json:"name"` } `json:"interests"` Jobs []struct { Title struct { Displayed bool `json:"displayed"` Name string `json:"name"` ID string `json:"id"` } `json:"title"` Company struct { Displayed bool `json:"displayed"` Name string `json:"name"` ID string `json:"id"` } `json:"company"` } `json:"jobs"` LatestUpdateDate time.Time `json:"latest_update_date"` Location interface{} `json:"location"` Name string `json:"name"` Photos []struct { YoffsetPercent int `json:"yoffset_percent,omitempty"` ID string `json:"id"` XdistancePercent int `json:"xdistance_percent,omitempty"` Main bool `json:"main,omitempty"` YdistancePercent int `json:"ydistance_percent,omitempty"` XoffsetPercent int `json:"xoffset_percent,omitempty"` FileName string `json:"fileName"` Extension string `json:"extension"` ProcessedFiles []struct { Width int `json:"width"` Height int `json:"height"` URL string `json:"url"` } `json:"processedFiles"` URL string `json:"url"` SuccessRate float64 `json:"successRate"` SelectRate int `json:"selectRate"` Shape string `json:"shape,omitempty"` } `json:"photos"` PhotoOptimizerEnabled bool `json:"photo_optimizer_enabled"` PhotoOptimizerHasResult bool `json:"photo_optimizer_has_result"` PingTime time.Time `json:"ping_time"` Pos struct { At int64 `json:"at"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` } `json:"pos"` PosMajor struct { Lat float64 `json:"lat"` Lon float64 `json:"lon"` At int64 `json:"at"` } `json:"pos_major"` PromotedOutOfDate bool `json:"promoted_out_of_date"` Schools []interface{} `json:"schools"` SquadsOnly bool `json:"squads_only"` SquadsDiscoverable bool `json:"squads_discoverable"` SquadAdsShown bool `json:"squad_ads_shown"` Username string `json:"username"` }
type RecsCoreResponse ¶
type RecsCoreResponse struct { Status int `json:"status"` Results []RecsCoreUser `json:"results"` }
type RecsCoreUser ¶
type RecsCoreUser struct { DistanceMi int `json:"distance_mi"` ConnectionCount int `json:"connection_count"` CommonLikes []interface{} `json:"common_likes"` CommonFriends []interface{} `json:"common_friends"` ContentHash string `json:"content_hash"` ID string `json:"_id"` Badges []interface{} `json:"badges,omitempty"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Name string `json:"name"` PingTime time.Time `json:"ping_time"` Photos []struct { ID string `json:"id"` URL string `json:"url"` ProcessedFiles []struct { URL string `json:"url"` Height int `json:"height"` Width int `json:"width"` } `json:"processedFiles"` } `json:"photos"` Jobs []interface{} `json:"jobs"` Schools []interface{} `json:"schools"` String string `json:"string"` } `json:"teaser"` SNumber int `json:"s_number"` SpotifyThemeTrack interface{} `json:"spotify_theme_track,omitempty"` Gender int `json:"gender"` BirthDateInfo string `json:"birth_date_info"` Instagram struct { LastFetchTime time.Time `json:"last_fetch_time"` CompletedInitialFetch bool `json:"completed_initial_fetch"` Photos []struct { Image string `json:"image"` Thumbnail string `json:"thumbnail"` Ts string `json:"ts"` Link string `json:"link"` } `json:"photos"` MediaCount int `json:"media_count"` ProfilePicture string `json:"profile_picture"` Username string `json:"username"` } `json:"instagram,omitempty"` CommonConnections []interface{} `json:"common_connections,omitempty"` CommonInterests []interface{} `json:"common_interests,omitempty"` UncommonInterests []interface{} `json:"uncommon_interests,omitempty"` SpotifyTopArtists []struct { Selected bool `json:"selected"` Name string `json:"name"` ID string `json:"id"` TopTrack struct { URI string `json:"uri"` Album struct { Images []struct { URL string `json:"url"` Width int `json:"width"` Height int `json:"height"` } `json:"images"` Name string `json:"name"` ID string `json:"id"` } `json:"album"` Name string `json:"name"` PreviewURL string `json:"preview_url"` Artists []struct { Name string `json:"name"` ID string `json:"id"` } `json:"artists"` ID string `json:"id"` } `json:"top_track"` } `json:"spotify_top_artists,omitempty"` IsTraveling bool `json:"is_traveling,omitempty"` }
type RecsSocial ¶
type RecsSocial struct { Type string `json:"type"` Group struct { ID string `json:"id"` Owner struct { DistanceMi int `json:"distance_mi"` CommonConnections []struct { ID string `json:"id"` Name string `json:"name"` Photo struct { Small string `json:"small"` Medium string `json:"medium"` Large string `json:"large"` } `json:"photo"` Degree int `json:"degree"` } `json:"common_connections"` ConnectionCount int `json:"connection_count"` CommonLikes []interface{} `json:"common_likes"` CommonInterests []interface{} `json:"common_interests"` UncommonInterests []interface{} `json:"uncommon_interests"` CommonFriends []interface{} `json:"common_friends"` ID string `json:"_id"` Badges []interface{} `json:"badges"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Name string `json:"name"` PingTime time.Time `json:"ping_time"` Photos []struct { ID string `json:"id"` URL string `json:"url"` ProcessedFiles []struct { URL string `json:"url"` Height int `json:"height"` Width int `json:"width"` } `json:"processedFiles"` } `json:"photos"` Jobs []interface{} `json:"jobs"` Schools []interface{} `json:"schools"` Teaser struct { String string `json:"string"` } `json:"teaser"` Teasers []interface{} `json:"teasers"` Gender int `json:"gender"` BirthDateInfo string `json:"birth_date_info"` } `json:"owner"` CreatedDate int64 `json:"created_date"` Members []struct { DistanceMi int `json:"distance_mi"` CommonConnections []interface{} `json:"common_connections"` ConnectionCount int `json:"connection_count"` CommonLikes []interface{} `json:"common_likes"` CommonInterests []interface{} `json:"common_interests"` CommonFriends []interface{} `json:"common_friends"` ID string `json:"_id"` Badges []interface{} `json:"badges"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Name string `json:"name"` PingTime time.Time `json:"ping_time"` Photos []struct { ID string `json:"id"` URL string `json:"url"` ProcessedFiles []struct { URL string `json:"url"` Height int `json:"height"` Width int `json:"width"` } `json:"processedFiles"` } `json:"photos"` Jobs []interface{} `json:"jobs"` Schools []interface{} `json:"schools"` Teaser struct { String string `json:"string"` } `json:"teaser"` Teasers []interface{} `json:"teasers"` Gender int `json:"gender"` BirthDateInfo string `json:"birth_date_info"` } `json:"members"` Expired bool `json:"expired"` Status string `json:"status"` } `json:"group"` GroupMatched bool `json:"group_matched"` }
type RecsSocialResponse ¶
type RecsSocialResponse struct { Status int `json:"status"` Results []RecsSocial `json:"results"` }
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func NewRequest ¶
func NewRequest() *Request
func (*Request) Get ¶
func (r *Request) Get(url string) HttpRequest
func (*Request) Post ¶
func (r *Request) Post(url string) HttpRequest
func (*Request) Send ¶
func (r *Request) Send(value string) HttpRequest
func (*Request) Set ¶
func (r *Request) Set(name, value string) HttpRequest
type TAuth ¶
type TAuth struct {
// contains filtered or unexported fields
}
func (*TAuth) Send ¶
func (a *TAuth) Send() (TAuthResponseData, error)
type TAuthRequest ¶
type TAuthRequest struct {
Token string `json:"token"`
}
type TAuthRequester ¶
type TAuthRequester struct {
// contains filtered or unexported fields
}
func NewTAuthRequester ¶
func NewTAuthRequester(requester HttpRequest) *TAuthRequester
func (*TAuthRequester) Authenticate ¶
func (tar *TAuthRequester) Authenticate(auth TAuthRequest) (TAuthResponse, error)
type TAuthResponse ¶
type TAuthResponse struct { Data TAuthResponseData `json:"data"` Meta struct { Status int `json:"status"` } `json:"meta"` }
type TAuthResponseData ¶
type TRequest ¶
type TRequest struct {
// contains filtered or unexported fields
}
func NewTRequest ¶
type TinderGo ¶
type TinderGo struct {
// contains filtered or unexported fields
}
func (*TinderGo) Authenticate ¶
func (*TinderGo) Decide ¶
func (t *TinderGo) Decide(user RecsCoreUser, action string) (LikeResponse, error)
func (*TinderGo) Like ¶
func (t *TinderGo) Like(user RecsCoreUser) (LikeResponse, error)
func (*TinderGo) Pass ¶
func (t *TinderGo) Pass(user RecsCoreUser) (LikeResponse, error)
func (*TinderGo) RecsCore ¶
func (t *TinderGo) RecsCore() ([]RecsCoreUser, error)
func (*TinderGo) RecsSocial ¶
func (t *TinderGo) RecsSocial() ([]RecsSocial, error)
func (*TinderGo) UpdateDistance ¶
func (t *TinderGo) UpdateDistance(miles int) (ProfileUpdateResponse, error)
type User ¶
type User struct { ConnectionCount int `json:"connection_count"` CommonLikes []interface{} `json:"common_likes"` CommonFriends []interface{} `json:"common_friends"` UID string `json:"_id"` Bio string `json:"bio"` BirthDate time.Time `json:"birth_date"` Name string `json:"name"` PingTime time.Time `json:"ping_time"` Photos []UserPhoto `json:"photos"` Jobs []interface{} `json:"jobs"` Schools []interface{} `json:"schools"` Gender int `json:"gender"` BirthDateInfo string `json:"birth_date_info"` ID string `json:"id"` DistanceMi int `json:"distance_mi"` }
type UserPhoto ¶
type UserPhoto struct { URL string `json:"url"` ProcessedFiles []struct { URL string `json:"url"` Height int `json:"height"` Width int `json:"width"` } `json:"processedFiles"` Extension string `json:"extension"` FileName string `json:"fileName"` Shape string `json:"shape"` Main bool `json:"main,omitempty"` ID string `json:"id"` }
type UserResponse ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.