Add get_attributes method to graphapi.