我对下面的代码感到厌倦,但是不知何故我没有返回任何数据。 当我使用Power shell SE调试它时,我认为看不到个人令牌是否可访问。 我在做什么错了?
android {
compileSdkVersion 28
defaultConfig {
applicationId "io.azpire.ncloudpay"
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'androidx.navigation:navigation-fragment:2.0.0'
implementation 'androidx.navigation:navigation-ui:2.0.0'
implementation "androidx.room:room-runtime:2.1.0-beta01"
annotationProcessor "androidx.room:room-compiler:2.1.0-beta01"
}
答案 0 :(得分:1)
可以将其放在脚本末尾吗?您在定义此函数之前先调用它。
GetWorkItems
invoke-restmethod
上的方法应为GET
而不是post
答案 1 :(得分:1)
请尝试定义参数并按如下所示修改Param(
[string]$collectionurl = "https://dev.azure.com/MYproject",
[string]$project = "TEST",
[string]$personalAccessToken="fdsafasdfdsafasd"
)
$url = "$collectionuri/$project/{team}/_apis/wit/wiql?api-version=5.0"
,然后重试:
npm i babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx\
babel-helper-vue-jsx-merge-props -D