0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

qiitactlなら…qiitactlならなんとかしてくれる…!

Last updated at Posted at 2018-05-05

qiita垢作っておいて初手から躓く大失態で途方に暮れて、色々探し回ってる間にqiitactlなるいいものが見つかったのでそれのセッティングをしております…が、これはこれで現在詰んでおります。

何事?

上の本人の解説に合わせて環境変数をあちこち試しながら、最終的にvimに追加してスクリプト書いたんですけどどうにもこうにもBad requestが止まらない。疑問に思ってとりあえずPowershellでちゃんと確認しよう、と思ったんですけど…

PS > qiitactl --debug create post test.md

POST https://qiita.com/api/v2/items HTTP/1.1
	:
	:
	:
Content-Type: application/json
{
  "id": "",
  "url": "",
  "created_at": "2018-05-05T15:08:01+09:00",
  "updated_at": "2018-05-05T15:08:01+09:00",
  "private": false,
  "coediting": false,
  "tags": null,
  "user": {
    "description": "",
    "facebook_id": "",
    "followees_count": 0,
    "followers_count": 0,
    "github_login_name": "",
    "id": "",
    "items_count": 0,
    "linkedin_id": "",
    "location": "",
    "name": "",
    "organization": "",
    "permanent_id": 0,
    "profile_image_url": "",
    "twitter_screen_name": "",
    "website_url": ""
  },
  "title": "test",
  "body": "",
  "rendered_body": "",
  "tweet": false,
  "gist": false
}
HTTP/1.1 400
	:
	:
	:
{"message":"Bad request","type":"bad_request"}
Bad request

DQMI0AqUEAEt3l9.jpg

jsonのuserの項目がユーザー情報すっからかんなんですけど、これ大丈夫なんです?ってなってるところです…

んでスクリプトは?

多分出来てるので後日

その後

とても間抜けなミスが発覚したのでテストも含めて今日中に…

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?