我正在尝试使用 Microsoft Graph API 在此处创建 OnlineMeetings https://docs.microsoft.com/en-us/graph/api/application-post-onlinemeetings?view=graph-rest-1.0&tabs=http
但是当按照此处的说明配置应用程序访问策略时:
https://docs.microsoft.com/en-us/graph/cloud-communication-online-meeting-application-access-policy
我们收到了 404 错误:
New-CsApplicationAccessPolicy -Identity OnlineMeetings-Link -AppIds "xxx-xxx-xxx" -Description "xxxx Local"
Get-CsOnlineSession: /Users/xxx/.local/share/powershell/Modules/MicrosoftTeams/2.3.1/netcoreapp3.1/SfBORemotePowershellModule.psm1:63
Line |
63 | $remoteSession = & (Get-CsOnlineSessionCommand)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The remote server returned an error: (404) Not Found.
Invoke-Command: /Users/xxx/.local/share/powershell/Modules/MicrosoftTeams/2.3.1/netcoreapp3.1/SfBORemotePowershellModule.psm1:22959
Line |
22959 | … -Session (Get-PSImplicitRemotingSession -CommandName 'New-CsApplic …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot validate argument on parameter 'Session'. The argument
| is null or empty. Provide an argument that is not null or
| empty, …Run Code Online (Sandbox Code Playgroud) powershell azure microsoft-teams microsoft-graph-teams microsoft-graph-api
我正在尝试将Evaluation模型添加到我的Rails 4应用中.
我做了一个名为的模型evaluation.rb.它有:
class Evaluation < ActiveRecord::Base
belongs_to :evaluator, :polymorphic => true
belongs_to :evaluatable, :polymorphic => true
Run Code Online (Sandbox Code Playgroud)
我也提出了担忧evaluator,并evaluatable为:
module Evaluator
extend ActiveSupport::Concern
included do
has_many :given_evaluations, as: :evaluator, dependent: :destroy, class_name: 'Evaluation'
end
end
module Evaluatable
extend ActiveSupport::Concern
included do
has_many :received_evaluations, as: :evaluatable, dependent: :destroy, class_name: 'Evaluation'
end
end
Run Code Online (Sandbox Code Playgroud)
我在用户模型中包含了每个问题:
class User < ActiveRecord::Base
include Evaluator
include Evaluatable
Run Code Online (Sandbox Code Playgroud)
在我的展示页面中,我想展示特定用户的评估(从其他用户 - 他们是评估者)收到.
在我的节目中,我有:
<% Evaluation.find(params[:id]).evaluations.order('created_at DESC').each do |eval| %>
<div …Run Code Online (Sandbox Code Playgroud)