{"action":"closed","issue":{"url":"https://api.github.com/repos/phonegap/build/issues/420","labels_url":"https://api.github.com/repos/phonegap/build/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/build/issues/420/comments","events_url":"https://api.github.com/repos/phonegap/build/issues/420/events","html_url":"https://github.com/phonegap/build/issues/420","id":63031593,"number":420,"title":"no create_method specified: file or remote_repo","user":{"login":"ashutosh2k12","id":1492350,"avatar_url":"https://avatars.githubusercontent.com/u/1492350?v=3","gravatar_id":"","url":"https://api.github.com/users/ashutosh2k12","html_url":"https://github.com/ashutosh2k12","followers_url":"https://api.github.com/users/ashutosh2k12/followers","following_url":"https://api.github.com/users/ashutosh2k12/following{/other_user}","gists_url":"https://api.github.com/users/ashutosh2k12/gists{/gist_id}","starred_url":"https://api.github.com/users/ashutosh2k12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashutosh2k12/subscriptions","organizations_url":"https://api.github.com/users/ashutosh2k12/orgs","repos_url":"https://api.github.com/users/ashutosh2k12/repos","events_url":"https://api.github.com/users/ashutosh2k12/events{/privacy}","received_events_url":"https://api.github.com/users/ashutosh2k12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T16:37:05Z","updated_at":"2015-07-09T14:34:23Z","closed_at":"2015-07-09T14:34:23Z","body":"I am trying to use phonegap build api via PHP. I first tried using the curl to get my apps, which worked great. Code:\r\n\r\n```\r\n$config['user'] = \"21********h@gmail.com\";\r\n$config['password'] = \"*******\";\r\n$url = \"https://build.phonegap.com/api/v1/apps\";\r\n$create_method = \"remote_repo\";\r\n$repo_url = \"https://github.com/alunny/phonegap-start.git\";\r\n$title = \"SampleApp\";\r\n\r\n$postdata = array(\r\n\t\"data\" => json_encode(array('create_method' => $create_method, 'title' => $title)),\r\n    \"repo\" => $repo_url\r\n    );\r\n$ch = curl_init();\r\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\ncurl_setopt($ch, CURLOPT_VERBOSE, true);\r\ncurl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); \t\t\r\ncurl_setopt($ch, CURLOPT_USERPWD, $config['user'].':'.$config['password']);\r\ncurl_setopt($ch, CURLINFO_HEADER_OUT, true);\r\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\r\ncurl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);\r\ncurl_setopt($ch, CURLOPT_POST, 1);\r\ncurl_setopt($ch, CURLOPT_URL, $url);\r\n$error = curl_error($ch);\r\n$output = curl_exec($ch);\r\ncurl_close($ch);\r\nprint_r($output);\r\n```\r\n\r\nThe above code is not working and outputting:\r\n`{\"error\":\"no create_method specified: file or remote_repo\"}`\r\n\r\nI am not sure why is this happening even though the same method worked for fetching my apps.\r\n"}}