是否可以使用 Elsevier API 获取具体出版物的所有引用(通过 scopus_id、doi ...)?
我试图做到这一点,尽我所能,就是获取引用计数,但我至少需要作者和标题。
例如,如果我想做:
https://api.elsevier.com/content/abstract/citations?pubmed_id=3472723&httpAccept=application/json&apiKey={myKey}
Run Code Online (Sandbox Code Playgroud)
我得到:
"{"service-error":{"status":{"statusCode":"AUTHENTICATION_ERROR","statusText":"Requestor configuration settings insufficient for access to this resource."}}}"
Run Code Online (Sandbox Code Playgroud)
有可能得到我想要的吗?
谢谢
我有模型存储和控制:
class Store extends Model{
protected $fillable = ['code', 'name', 'country_id', 'active'];
public function controls(){
return $this->hasMany('App\Control');
}
}
class Control extends Model{
protected $fillable = ['store_id', 'user_id', 'saved_at'];
public function store(){
return $this->belongsTo('App\Store');
}
}
Run Code Online (Sandbox Code Playgroud)
现在我想获得 5 个商店,其中没有控件或控件是所有控件中最旧的(created_at)。
我怎样才能用雄辩的方式创造这个条件?我知道如何使用 Joins 实现它,但我希望它使用“漂亮的代码”。
像 :D
\App\Store::with('controls')->whereNotNull('controls.created_at')->orderBy('controls.created_at', 'desc')->take(5)->get();
Run Code Online (Sandbox Code Playgroud)