Documentation ¶
Overview ¶
Package namigo provides a basic read-only implemaentation of the DPSG NAMI API. It also provides a lot of structs to work with the NAMI data.
Index ¶
- func GetActivityById(userid string, activityId string) (types.Activity, error)
- func GetEducationById(userid string, educationId string) (types.Education, error)
- func GetGroupInfo() (types.GroupInfo, error)
- func GetGroupTagById(tagid string) (types.GroupTag, error)
- func GetGroupTags() ([]types.GroupTagListItem, error)
- func GetMemberActivities(userid string) ([]types.ActivityListItem, error)
- func GetMemberDetails(userid string, groupid string) (types.Member, error)
- func GetMemberEducation(userid string) ([]types.EducationListItem, error)
- func GetTagById(userid string, tagId string) (types.Tag, error)
- func GetTags(userid string) ([]types.TagListEntry, error)
- func Login(username string, password string) error
- func Logout() (bool, error)
- func Search(searchValues types.SearchValues) ([]types.SearchMember, error)
- func UpdateMemberActivities(userid string, activity types.Activity) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetActivityById ¶
GetActivityById returns details about a specific "Tätigkeit". This is more detailed then the ActivityListItem objects returned by GetMemberActivities
func GetEducationById ¶
GetEducationById returns details about a specific "Ausbildung" entry. This is more detailed then the EducationListItem objects returned by GetMemberEducation
func GetGroupInfo ¶
GetGroupInfo returns info about the primary "Stammgruppierung" from the logged in User.
func GetGroupTagById ¶
GetGroupTagById returns details about a "Tag" of a Group This is more detailed then the GroupTagListItem objects returned by GetGroupTags
func GetGroupTags ¶
func GetGroupTags() ([]types.GroupTagListItem, error)
GetGroupTags returns a slice containing all "Tags" available in a "Gruppierung"
func GetMemberActivities ¶
func GetMemberActivities(userid string) ([]types.ActivityListItem, error)
GetMemberActivities returns a slice containing all current "Tätigkeiten" of a Member
func GetMemberDetails ¶
GetMemberDetails gets informationa bout a specific user. This information is more detailed then the user info contained in the SearchMember objetcs returned by Search
func GetMemberEducation ¶
func GetMemberEducation(userid string) ([]types.EducationListItem, error)
GetMemberEducation returns a slice containing all "Ausbildung" entries of a Member
func GetTagById ¶
GetTagById returns details about a specific "Tag" entry. This is more detailed then the TagListEntry objects returned by GetTags
func GetTags ¶
func GetTags(userid string) ([]types.TagListEntry, error)
GetTags returns a slice containing all "Tags" of a Member
func Login ¶
Login authenticates with the NAMI and saves the auth cookies in a Jar to be accessed by other functions. This function should be called before working with any other namigo functions!
func Search ¶
func Search(searchValues types.SearchValues) ([]types.SearchMember, error)
Search searches through all Member visible to a user. Filters are specified by values set in searchValues.
Types ¶
This section is empty.