make api class