//-------------------------------------- // Utils //-------------------------------------- private HttpMethod ConvertHttpMethod(FB_HttpMethod method) { switch (method) { case FB_HttpMethod.GET: return(HttpMethod.GET); case FB_HttpMethod.POST: return(HttpMethod.POST); case FB_HttpMethod.DELETE: return(HttpMethod.DELETE); } return(HttpMethod.GET); }
public void API(string query, FB_HttpMethod method, SPFacebook.FB_Delegate callback, WWWForm form) { #if FBV7_API_ENABLED new FB_GrapRequest_V7(query, ConvertHttpMethod(method), callback, form); #endif }
//-------------------------------------- // Utils //-------------------------------------- private HttpMethod ConvertHttpMethod(FB_HttpMethod method) { switch(method) { case FB_HttpMethod.GET: return HttpMethod.GET; case FB_HttpMethod.POST: return HttpMethod.POST; case FB_HttpMethod.DELETE: return HttpMethod.POST; } return HttpMethod.GET; }