/**
  * @Route("createprojectaction", name="createprojectaction")
  */
 public function createprojectAction(Request $request)
 {
     $projectname = json_decode(file_get_contents("php://input"));
     include_once $this->get('kernel')->getRootDir() . '/../vendor/twilio/sdk/Services/Twilio.php';
     $path = $this->get('kernel')->getRootDir();
     $accountSid = 'AC0f18494502dee91457252ff7b2bada6a';
     $authToken = '2f430f7691acb543889ef3a721c1c096';
     $params = array();
     $params['EventCallbackUrl'] = 'http://requestb.in/vh9reovh';
     $params['Template'] = 'FIFO';
     $taskrouterclient = new \TaskRouter_Services_Twilio($accountSid, $authToken, null);
     $workspace = $taskrouterclient->workspaces->create($projectname, $params);
     $workspaceId = $workspace->sid;
     $new_project = new Project();
     $new_project->setProjectname($projectname);
     $new_project->setWorkspaceid($workspaceId);
     $em = $this->getDoctrine()->getManager();
     $em->persist($new_project);
     $em->flush();
     return new Response('<h1>Project Created!!!' . $projectname . ' Id: ' . $workspaceId . '</h1>');
 }