Actions

Alternatives to the LimeSurvey import function/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "コマンドパラメーターを確認するには、次のように実行します。")
(Created page with "=リモートコントロールAPIを使ってインポートする= LimeSurveyバージョン2.0以降、リモートコントロール 2 APIを使...")
Line 22: Line 22:
  <code>php cmdline_importsurvey -h</code>
  <code>php cmdline_importsurvey -h</code>


=Import using RemoteControl API=
=リモートコントロールAPIを使ってインポートする=
Since LimeSurvey version 2.0, you can import a survey structure by using the [[RemoteControl_2_API|RemoteControl 2 API]].
LimeSurveyバージョン2.0以降、[[RemoteControl_2_API/ja|リモートコントロール 2 API]]を使ってアンケートをインポートできます。


=Import surveys from other applications=
=Import surveys from other applications=


We often get requests to import a survey from other applications or survey providers. The problem is that providers (like SurveyMonkey) lock you in - it is not possible to export the survey structure (e.g. from SurveyMonkey), but only the response data.
We often get requests to import a survey from other applications or survey providers. The problem is that providers (like SurveyMonkey) lock you in - it is not possible to export the survey structure (e.g. from SurveyMonkey), but only the response data.

Revision as of 10:34, 16 June 2018


これから、LimeSurveyのインポート機能の代替手段を紹介します。

コマンドラインユーティリティを使用してインポートする

バージョン1.50から1.92までは、コマンドライン(またはシェル)からアンケートをインポートすることができました。この機能を使用するには、シェルにアクセスする必要があり、スクリプトのシェル実行を許可するよう、PHPインタプリターを設定する必要があります。

この機能は、非常に長いアンケートをウェブでインポートするとき、タイムアウトの問題が発生する場合に役立ちます。

シェルの"limesurvey/admin"フォルダーに移動して実行します。

php cmdline_importsurvey <インポートするファイル> [<ユーザー> <パスワード>]
  • <インポートするファイル>: インポートしたいファイル
  • <ユーザー>: アンケート作成権限のあるユーザー
  • <パスワード>: 該当ユーザーのパスワード

コマンドパラメーターを確認するには、次のように実行します。

php cmdline_importsurvey -h

リモートコントロールAPIを使ってインポートする

LimeSurveyバージョン2.0以降、リモートコントロール 2 APIを使ってアンケートをインポートできます。

Import surveys from other applications

We often get requests to import a survey from other applications or survey providers. The problem is that providers (like SurveyMonkey) lock you in - it is not possible to export the survey structure (e.g. from SurveyMonkey), but only the response data.