func (c *Client42) GetAchievementsByCursus(id interface{}, params *RequestParameter) ([]Achievement42, error) {
	return c.backGetAchievements(params, cursusRequest, id)
}
By Cursus
Returns all the Achievements of the given Cursus.
package api42
type Achievement42 struct {
	ID           int             `json:"id"`
	Name         string          `json:"name"`
	Description  string          `json:"description"`
	Tier         string          `json:"tier"`
	Kind         string          `json:"kind"`
	Visible      bool            `json:"visible"`
	Image        string          `json:"image"`
	NbrOfSuccess int             `json:"nbr_of_success"`
	UsersURL     string          `json:"users_url"`
	Achievements []Achievement42 `json:"achievements"`
	Parent       *Achievement42  `json:"parent"`
	Title        *Title42        `json:"title"`
	client       *Client42
}
func (c *Client42) backGetAchievements(params *RequestParameter, directFilter string, value interface{}) ([]Achievement42, error) {
	var achievementArray []Achievement42
	url, err := buildUrl(achievementRequest, directFilter, value)
	if err != nil {
		return nil, err
	}
	_, err = c.Get(url, params, &achievementArray)
	if err != nil {
		return nil, err
	}
	for i := 0; i < len(achievementArray); i++ {
		achievementArray[i].client = c
	}
	return achievementArray, nil
}
func (c *Client42) GetAchievement(id interface{}) (*Achievement42, error) {
	var achievement *Achievement42
	url, err := buildUrl(achievementRequest, defaultRequest, id)
	if err != nil {
		return nil, err
	}
	_, err = c.Get(url, nil, &achievement)
	if err != nil {
		return nil, err
	}
	achievement.client = c
	return achievement, nil
}
func (c *Client42) GetAchievements(params *RequestParameter) ([]Achievement42, error) {
	return c.backGetAchievements(params, defaultRequest, nil)
}